3
0
Fork 0
mirror of https://github.com/Z3Prover/z3 synced 2025-12-06 03:52:24 +00:00

fix dotnet build errors

Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
This commit is contained in:
Nikolaj Bjorner 2025-11-26 09:29:59 -08:00
parent d1272defeb
commit 55fc9cb9e1
2 changed files with 4 additions and 4 deletions

View file

@ -50,10 +50,10 @@ namespace Microsoft.Z3
{
get
{
bool res = false;
if (!Native.Z3_fpa_get_numeral_sign(Context.nCtx, NativeObject, ref res))
byte res = 0;
if (0 == Native.Z3_fpa_get_numeral_sign(Context.nCtx, NativeObject, ref res))
throw new Z3Exception("Sign is not a Boolean value");
return res;
return res != 0;
}
}

View file

@ -41,7 +41,7 @@ namespace Microsoft.Z3
public static bool Open(string filename)
{
m_is_open = true;
return Native.Z3_open_log(filename);
return 0 != Native.Z3_open_log(filename);
}
/// <summary>