mirror of
https://github.com/Z3Prover/z3
synced 2025-04-10 19:27:06 +00:00
python: fix usage of fpa_get_numeral_significand_uint64
This commit is contained in:
parent
450da5ea0c
commit
0adf66dc0a
|
@ -8858,7 +8858,10 @@ class FPNumRef(FPRef):
|
|||
1.25
|
||||
"""
|
||||
def significand_as_long(self):
|
||||
return Z3_fpa_get_numeral_significand_uint64(self.ctx.ref(), self.as_ast())
|
||||
ptr = (ctypes.c_ulonglong * 1)()
|
||||
if not Z3_fpa_get_numeral_significand_uint64(self.ctx.ref(), self.as_ast(), ptr):
|
||||
raise Z3Exception("error retrieving the significand of a numeral.")
|
||||
return ptr[0]
|
||||
|
||||
"""The significand of the numeral as a bit-vector expression.
|
||||
|
||||
|
|
Loading…
Reference in a new issue