Commit 574cf102 by Mathias Soeken

Fix wrong type cast.

parent 1cd5f768
...@@ -437,7 +437,7 @@ static inline void solver_reduce_cdb(solver_t *s) ...@@ -437,7 +437,7 @@ static inline void solver_reduce_cdb(solver_t *s)
limit = (unsigned)(n_learnts * s->opts.learnt_ratio); limit = (unsigned)(n_learnts * s->opts.learnt_ratio);
satoko_sort((void *)learnts_cls, n_learnts, satoko_sort((void **)learnts_cls, n_learnts,
(int (*)(const void *, const void *)) clause_compare); (int (*)(const void *, const void *)) clause_compare);
if (learnts_cls[n_learnts / 2]->lbd <= 3) if (learnts_cls[n_learnts / 2]->lbd <= 3)
......
...@@ -790,7 +790,7 @@ void xSAT_SolverReduceDB( xSAT_Solver_t * s ) ...@@ -790,7 +790,7 @@ void xSAT_SolverReduceDB( xSAT_Solver_t * s )
limit = nLearnedOld / 2; limit = nLearnedOld / 2;
xSAT_UtilSort((void *) learnts_cls, nLearnedOld, xSAT_UtilSort((void **) learnts_cls, nLearnedOld,
(int (*)( const void *, const void * )) xSAT_ClauseCompare); (int (*)( const void *, const void * )) xSAT_ClauseCompare);
if ( learnts_cls[nLearnedOld / 2]->nLBD <= 3 ) if ( learnts_cls[nLearnedOld / 2]->nLBD <= 3 )
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment