]> matita.cs.unibo.it Git - helm.git/blobdiff - matita/components/getter/http_getter_misc.ml
revert from camlp5o to standard syntax
[helm.git] / matita / components / getter / http_getter_misc.ml
index 38a943bc59b90091b89b32f6132b11c99ce427c5..1223af468228dc90b29dd4a6be1571c8bfdcc354 100644 (file)
@@ -183,7 +183,7 @@ let gunzip ?(keep = false) ?output fname =
       (try
         while true do
           let bytes = Gzip.input ic buf 0 bufsiz in
-          if bytes = 0 then raise End_of_file else Pervasives.output oc buf 0 bytes
+          if bytes = 0 then raise End_of_file else Stdlib.output oc buf 0 bytes
         done
       with End_of_file -> ());
        close_out oc;
@@ -300,7 +300,7 @@ let temp_file_of_uri uri =
   let flat_string s s' c =
     let cs = Bytes.of_string s in
     for i = 0 to (String.length s) - 1 do
-      if String.contains s' s.[i] then cs.[i] <- c
+      if String.contains s' s.[i] then Bytes.set cs i c
     done;
     Bytes.to_string cs
   in