3
0
Fork 0
mirror of https://github.com/Z3Prover/z3 synced 2025-04-24 01:25:31 +00:00

fix debian amd64 warnings

Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
This commit is contained in:
Nikolaj Bjorner 2015-05-18 15:17:21 -07:00
parent c17fd2d516
commit 203c5015c8
9 changed files with 15 additions and 13 deletions

View file

@ -89,11 +89,11 @@ class wcnf {
ast_manager& m;
stream_buffer& in;
app_ref read_clause(unsigned& weight) {
app_ref read_clause(int& weight) {
int parsed_lit;
int var;
parsed_lit = in.parse_int();
weight = static_cast<unsigned>(parsed_lit);
weight = parsed_lit;
app_ref result(m), p(m);
expr_ref_vector ors(m);
while (true) {
@ -137,7 +137,7 @@ public:
parse_spec(num_vars, num_clauses, max_weight);
}
else {
unsigned weight = 0;
int weight = 0;
app_ref cls = read_clause(weight);
if (weight == max_weight) {
opt.add_hard_constraint(cls);