mirror of
https://github.com/Z3Prover/z3
synced 2025-08-27 21:48:56 +00:00
fix ocaml build by moving to Zarith methods
This commit is contained in:
parent
09523a4bca
commit
77c3f1fb82
2 changed files with 4 additions and 4 deletions
|
@ -1039,7 +1039,7 @@ struct
|
|||
let get_big_int (x:expr) =
|
||||
if is_int_numeral x then
|
||||
let s = (Z3native.get_numeral_string (Expr.gc x) x) in
|
||||
Big_int.big_int_of_string s
|
||||
Z.of_string s
|
||||
else
|
||||
raise (Error "Conversion failed.")
|
||||
|
||||
|
@ -1063,7 +1063,7 @@ struct
|
|||
let get_ratio x =
|
||||
if is_rat_numeral x then
|
||||
let s = Z3native.get_numeral_string (Expr.gc x) x in
|
||||
Ratio.ratio_of_string s
|
||||
Q.of_string s
|
||||
else
|
||||
raise (Error "Conversion failed.")
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue