3
0
Fork 0
mirror of https://github.com/Z3Prover/z3 synced 2025-12-04 11:06:45 +00:00

port to BoolPtr

Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
This commit is contained in:
Nikolaj Bjorner 2025-11-25 21:08:43 -08:00
parent 39e427a229
commit eecd052730
2 changed files with 3 additions and 3 deletions

View file

@ -27,10 +27,10 @@ public class FPNum extends FPExpr
* @throws Z3Exception * @throws Z3Exception
*/ */
public boolean getSign() { public boolean getSign() {
Native.IntPtr res = new Native.IntPtr(); Native.BoolPtr res = new Native.BoolPtr();
if (!Native.fpaGetNumeralSign(getContext().nCtx(), getNativeObject(), res)) if (!Native.fpaGetNumeralSign(getContext().nCtx(), getNativeObject(), res))
throw new Z3Exception("Sign is not a Boolean value"); throw new Z3Exception("Sign is not a Boolean value");
return res.value != 0; return res.value;
} }
/** /**

View file

@ -36,7 +36,7 @@ public final class Log
public static boolean open(String filename) public static boolean open(String filename)
{ {
m_is_open = true; m_is_open = true;
return Native.openLog(filename) == 1; return Native.openLog(filename);
} }
/** /**