Skip to content

Commit

Permalink
fix: do not use private Bytes function
Browse files Browse the repository at this point in the history
  • Loading branch information
c-cube committed Jan 10, 2024
1 parent ef7d0f4 commit 7cb1f26
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/fuchsia/write/buf.ml
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,7 @@ let[@inline] add_string (self : t) (s : string) : unit =
let missing = missing_to_round len in

(* bound check *)
assert (len + missing + self.offset <= Bytes.length self.buf);
Bytes.unsafe_blit_string s 0 self.buf self.offset len;
Bytes.blit_string s 0 self.buf self.offset len;
self.offset <- self.offset + len;

(* add 0-padding *)
Expand Down

0 comments on commit 7cb1f26

Please sign in to comment.