mirror of
https://github.com/c-cube/ocaml-containers.git
synced 2025-12-07 11:45:31 -05:00
check for non-negative length
This commit is contained in:
parent
d66a5bc86f
commit
ed126fa6bb
1 changed files with 1 additions and 1 deletions
|
|
@ -284,7 +284,7 @@ struct
|
|||
let s_len = Bytes.length s in \
|
||||
let b = ByteBuffer.create ~bounded:true i in \
|
||||
ByteBuffer.blit_from b s 0 s_len; \
|
||||
ByteBuffer.length b <= i)
|
||||
ByteBuffer.length b >= 0 && ByteBuffer.length b <= i)
|
||||
*)
|
||||
|
||||
(* resize [b] so that inner capacity is [cap] *)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue