3
0
Fork 0
mirror of https://github.com/Z3Prover/z3 synced 2026-01-21 17:44:43 +00:00

coerce bool

Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
This commit is contained in:
Nikolaj Bjorner 2026-01-13 11:45:57 -08:00
parent c78d5405d1
commit 8b188621a5
2 changed files with 7 additions and 9 deletions

View file

@ -399,7 +399,7 @@ namespace Microsoft.Z3
/// <returns>String representation</returns>
public string ToString(bool compact)
{
return Native.Z3_rcf_num_to_string(Context.nCtx, NativeObject, compact, false);
return Native.Z3_rcf_num_to_string(Context.nCtx, NativeObject, compact ? 1 : 0, false);
}
/// <summary>