mirror of
https://github.com/Z3Prover/z3
synced 2025-12-06 20:12:25 +00:00
fix dotnet build errors
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
This commit is contained in:
parent
d1272defeb
commit
55fc9cb9e1
2 changed files with 4 additions and 4 deletions
|
|
@ -50,10 +50,10 @@ namespace Microsoft.Z3
|
||||||
{
|
{
|
||||||
get
|
get
|
||||||
{
|
{
|
||||||
bool res = false;
|
byte res = 0;
|
||||||
if (!Native.Z3_fpa_get_numeral_sign(Context.nCtx, NativeObject, ref res))
|
if (0 == Native.Z3_fpa_get_numeral_sign(Context.nCtx, NativeObject, ref res))
|
||||||
throw new Z3Exception("Sign is not a Boolean value");
|
throw new Z3Exception("Sign is not a Boolean value");
|
||||||
return res;
|
return res != 0;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -41,7 +41,7 @@ namespace Microsoft.Z3
|
||||||
public static bool Open(string filename)
|
public static bool Open(string filename)
|
||||||
{
|
{
|
||||||
m_is_open = true;
|
m_is_open = true;
|
||||||
return Native.Z3_open_log(filename);
|
return 0 != Native.Z3_open_log(filename);
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue