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:
parent
b3db9a1cd5
commit
d980ee0533
2 changed files with 5 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue