diff options
author | Paul Phillips <paulp@improving.org> | 2016-03-01 08:08:37 -0800 |
---|---|---|
committer | Paul Phillips <paulp@improving.org> | 2016-03-01 08:38:40 -0800 |
commit | 04886a8e9d25c2a28e63645c1cc3feff0625a747 (patch) | |
tree | b4cdbee1d75719fb180df4ecf330f5a889760157 /src/lwt/generic/lwt_unix_impl.ml | |
parent | 644299b54ab3162b444d907b068accab08000a38 (diff) | |
download | unison-04886a8e9d25c2a28e63645c1cc3feff0625a747.zip unison-04886a8e9d25c2a28e63645c1cc3feff0625a747.tar.gz unison-04886a8e9d25c2a28e63645c1cc3feff0625a747.tar.bz2 |
Eliminating deprecation warnings.
Diffstat (limited to 'src/lwt/generic/lwt_unix_impl.ml')
-rw-r--r-- | src/lwt/generic/lwt_unix_impl.ml | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/lwt/generic/lwt_unix_impl.ml b/src/lwt/generic/lwt_unix_impl.ml index 09f007a..1c16cf3 100644 --- a/src/lwt/generic/lwt_unix_impl.ml +++ b/src/lwt/generic/lwt_unix_impl.ml @@ -369,11 +369,11 @@ let really_input ic s ofs len = else unsafe_really_input ic s ofs len let input_line ic = - let buf = ref (String.create 128) in + let buf = ref (Bytes.create 128) in let pos = ref 0 in let rec loop () = if !pos = String.length !buf then begin - let newbuf = String.create (2 * !pos) in + let newbuf = Bytes.create (2 * !pos) in String.blit !buf 0 newbuf 0 !pos; buf := newbuf end; @@ -395,7 +395,7 @@ let input_line ic = | _ -> Lwt.fail e)) (fun () -> - let res = String.create !pos in + let res = Bytes.create !pos in String.blit !buf 0 res 0 !pos; Lwt.return res) |