aboutsummaryrefslogtreecommitdiffstats
path: root/lib/Camlcoq.ml
diff options
context:
space:
mode:
Diffstat (limited to 'lib/Camlcoq.ml')
-rw-r--r--lib/Camlcoq.ml6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/Camlcoq.ml b/lib/Camlcoq.ml
index c5fb2e55..90c3ab3f 100644
--- a/lib/Camlcoq.ml
+++ b/lib/Camlcoq.ml
@@ -307,11 +307,11 @@ let first_unused_ident () = !next_atom
(* Strings *)
let camlstring_of_coqstring (s: char list) =
- let r = String.create (List.length s) in
+ let r = Bytes.create (List.length s) in
let rec fill pos = function
| [] -> r
- | c :: s -> r.[pos] <- c; fill (pos + 1) s
- in fill 0 s
+ | c :: s -> Bytes.set r pos c; fill (pos + 1) s
+ in Bytes.to_string (fill 0 s)
let coqstring_of_camlstring s =
let rec cstring accu pos =