3
0
Fork 0
mirror of https://github.com/Z3Prover/z3 synced 2025-04-23 17:15:31 +00:00

fix regression in FPNumRef sign

This commit is contained in:
Nikolaj Bjorner 2021-08-18 10:00:22 -07:00
parent b3db9a1cd5
commit d980ee0533
2 changed files with 5 additions and 1 deletions

View file

@ -9581,7 +9581,7 @@ class FPNumRef(FPRef):
def sign(self):
num = (ctypes.c_int)()
nsign = Z3_fpa_get_numeral_sign(self.ctx.ref(), self.as_ast(), byref(l))
nsign = Z3_fpa_get_numeral_sign(self.ctx.ref(), self.as_ast(), byref(num))
if nsign is False:
raise Z3Exception("error retrieving the sign of a numeral.")
return num.value != 0