mirror of
https://github.com/Z3Prover/z3
synced 2025-12-05 03:26:45 +00:00
fix second byref to bool
This commit is contained in:
parent
ed8b92411e
commit
28dc71c75e
1 changed files with 2 additions and 2 deletions
|
|
@ -831,7 +831,7 @@ class Formatter:
|
|||
else:
|
||||
_z3_assert(z3.is_fp_value(a), "expecting FP num ast")
|
||||
r = []
|
||||
sgn = c_bool(0)
|
||||
sgn = ctypes.c_bool()
|
||||
sgnb = Z3_fpa_get_numeral_sign(a.ctx_ref(), a.ast, byref(sgn))
|
||||
exp = Z3_fpa_get_numeral_exponent_string(a.ctx_ref(), a.ast, False)
|
||||
sig = Z3_fpa_get_numeral_significand_string(a.ctx_ref(), a.ast)
|
||||
|
|
@ -861,7 +861,7 @@ class Formatter:
|
|||
else:
|
||||
_z3_assert(z3.is_fp_value(a), "expecting FP num ast")
|
||||
r = []
|
||||
sgn = (ctypes.c_int)(0)
|
||||
sgn = ctypes.c_bool()
|
||||
sgnb = Z3_fpa_get_numeral_sign(a.ctx_ref(), a.ast, byref(sgn))
|
||||
exp = Z3_fpa_get_numeral_exponent_string(a.ctx_ref(), a.ast, False)
|
||||
sig = Z3_fpa_get_numeral_significand_string(a.ctx_ref(), a.ast)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue