From 131c1613a4ca77c063cd677d0086a3b426868b3b Mon Sep 17 00:00:00 2001 From: Alan Mishchenko Date: Sat, 18 Feb 2017 14:29:04 -0800 Subject: Compiler warnings. --- src/aig/gia/giaSatoko.c | 2 +- src/sat/satoko/cnf_reader.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/aig/gia/giaSatoko.c b/src/aig/gia/giaSatoko.c index 7cbc4184..5e04502d 100644 --- a/src/aig/gia/giaSatoko.c +++ b/src/aig/gia/giaSatoko.c @@ -87,7 +87,7 @@ satoko_t * Gia_ManSatokoInit( Cnf_Dat_t * pCnf, satoko_opts_t * opts ) //sat_solver_setnvars( pSat, p->nVars ); for ( i = 0; i < pCnf->nClauses; i++ ) { - if ( !satoko_add_clause( pSat, (unsigned *)pCnf->pClauses[i], pCnf->pClauses[i+1]-pCnf->pClauses[i] ) ) + if ( !satoko_add_clause( pSat, pCnf->pClauses[i], pCnf->pClauses[i+1]-pCnf->pClauses[i] ) ) { satoko_destroy( pSat ); return NULL; diff --git a/src/sat/satoko/cnf_reader.c b/src/sat/satoko/cnf_reader.c index 9fbbda65..adb9a47b 100644 --- a/src/sat/satoko/cnf_reader.c +++ b/src/sat/satoko/cnf_reader.c @@ -141,7 +141,7 @@ int satoko_parse_dimacs(char *fname, satoko_t **solver) return -1; } read_clause(&token, lits); - if (!satoko_add_clause(p, vec_uint_data(lits), vec_uint_size(lits))) { + if (!satoko_add_clause(p, (int*)vec_uint_data(lits), vec_uint_size(lits))) { vec_uint_print(lits); return 0; } -- cgit v1.2.3