mirror of
https://github.com/Z3Prover/z3
synced 2025-06-03 21:01:22 +00:00
fix for github issue #105
This commit is contained in:
parent
4546c3e7bb
commit
e438143abc
1 changed files with 1 additions and 1 deletions
|
@ -966,7 +966,7 @@ public:
|
||||||
get_linear_coefficients(t,coeffs);
|
get_linear_coefficients(t,coeffs);
|
||||||
if(coeffs.size() == 0)
|
if(coeffs.size() == 0)
|
||||||
return make_int("1"); // arbitrary
|
return make_int("1"); // arbitrary
|
||||||
rational d = coeffs[0];
|
rational d = abs(coeffs[0]);
|
||||||
for(unsigned i = 1; i < coeffs.size(); i++){
|
for(unsigned i = 1; i < coeffs.size(); i++){
|
||||||
d = gcd(d,coeffs[i]);
|
d = gcd(d,coeffs[i]);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue