Skip to content

Commit

Permalink
Fix compilation with latest lwt
Browse files Browse the repository at this point in the history
  • Loading branch information
andrenth committed Jan 21, 2015
1 parent 687173c commit 040be03
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/buffer/release_buffer.ml
Expand Up @@ -33,8 +33,9 @@ let add_char buf c =
set buf buf.len c

let add_string buf s =
let b = Bytes.of_string s in
let len = String.length s in
Lwt_bytes.blit_string_bytes s 0 buf.bytes buf.len len;
Lwt_bytes.blit_from_bytes b 0 buf.bytes buf.len len;
buf.len <- buf.len + len

let sub buf off len =
Expand Down

0 comments on commit 040be03

Please sign in to comment.