ports/lang/haxe/patches/patch-ocamldeps_ocaml-sha_sha1_ml

15 lines
445 B
Text
Raw Normal View History

2023-08-16 22:26:55 +00:00
replace deprecated lib Pervasives
Index: ocamldeps/ocaml-sha/sha1.ml
--- ocamldeps/ocaml-sha/sha1.ml.orig
+++ ocamldeps/ocaml-sha/sha1.ml
@@ -62,7 +62,7 @@ let channel chan len =
while (!left == -1 || !left > 0) && not !eof
do
let len = if !left < 0 then blksize else (min !left blksize) in
- let readed = Pervasives.input chan buf 0 len in
+ let readed = Stdlib.input chan buf 0 len in
if readed = 0 then
eof := true
else (