summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStephane Glondu <steph@glondu.net>2019-09-08 18:02:09 +0200
committerStéphane Glondu <glondu@debian.org>2019-09-08 18:05:10 +0200
commit25e9db260e0605cba11bdbb68a4ff40cdbf98090 (patch)
treef7247f6c6fa4cbf9c29bfd2bef4eb376d99e188b
parentb63a9f2e54f19bf5193e0669e9cf3942ed2693ae (diff)
Fix compilation with OCaml 4.08.0
Gbp-Pq: Name 0001-Fix-compilation-with-OCaml-4.08.0.patch
-rw-r--r--setup.ml4
1 files changed, 2 insertions, 2 deletions
diff --git a/setup.ml b/setup.ml
index e18726f..50892b0 100644
--- a/setup.ml
+++ b/setup.ml
@@ -210,11 +210,11 @@ module OASISString = struct
raise Not_found
let replace_chars f s =
- let buf = String.make (String.length s) 'X' in
+ let buf = Bytes.make (String.length s) 'X' in
for i = 0 to String.length s - 1 do
buf.[i] <- f s.[i]
done;
- buf
+ Bytes.to_string buf
end