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:
parent
4546c3e7bb
commit
e438143abc
|
@ -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]);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue