aboutsummaryrefslogtreecommitdiffstats
path: root/lib/Camlcoq.ml
diff options
context:
space:
mode:
Diffstat (limited to 'lib/Camlcoq.ml')
-rw-r--r--lib/Camlcoq.ml2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/Camlcoq.ml b/lib/Camlcoq.ml
index 63a31181..5c25796e 100644
--- a/lib/Camlcoq.ml
+++ b/lib/Camlcoq.ml
@@ -272,6 +272,8 @@ let coqint_of_camlint : int32 -> Integers.Int.int = Z.of_uint32
let camlint64_of_coqint : Integers.Int64.int -> int64 = Z.to_int64
let coqint_of_camlint64 : int64 -> Integers.Int64.int = Z.of_uint64
(* interpret the int64 as unsigned so that result Z is in range for int *)
+let camlint64_of_ptrofs : Integers.Ptrofs.int -> int64 =
+ fun x -> Z.to_int64 (Integers.Ptrofs.signed x)
(* Atoms (positive integers representing strings) *)