3
0
Fork 0
mirror of https://github.com/Z3Prover/z3 synced 2025-04-08 18:31:49 +00:00

fix for github issue #105

This commit is contained in:
Ken McMillan 2015-05-22 11:02:26 -07:00
parent 4546c3e7bb
commit e438143abc

View file

@ -966,7 +966,7 @@ public:
get_linear_coefficients(t,coeffs);
if(coeffs.size() == 0)
return make_int("1"); // arbitrary
rational d = coeffs[0];
rational d = abs(coeffs[0]);
for(unsigned i = 1; i < coeffs.size(); i++){
d = gcd(d,coeffs[i]);
}