Skip to content

Commit

Permalink
fix too strict assertion
Browse files Browse the repository at this point in the history
  • Loading branch information
c-cube committed Dec 27, 2023
1 parent eaa76ec commit 6227708
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/fuchsia/write/buf.ml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +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);
assert (len + missing + self.offset <= Bytes.length self.buf);
Bytes.unsafe_blit_string s 0 self.buf self.offset len;
self.offset <- self.offset + len;

Expand Down

0 comments on commit 6227708

Please sign in to comment.