mirror of
https://github.com/ocaml-tracing/ocaml-trace.git
synced 2026-03-07 18:37:56 -05:00
fix fuchsia: bound check
This commit is contained in:
parent
d9cd7621f5
commit
a81785f8c0
1 changed files with 1 additions and 1 deletions
|
|
@ -102,7 +102,7 @@ let with_buf (self : t) ~(available_word : int) (f : Buf.t -> 'a) : 'a =
|
||||||
let available = available_word lsl 3 in
|
let available = available_word lsl 3 in
|
||||||
match self.bufs with
|
match self.bufs with
|
||||||
| B_one r ->
|
| B_one r ->
|
||||||
if Buf.available r.buf < available_word then (
|
if Buf.available r.buf < available then (
|
||||||
put_in_ready self r.buf;
|
put_in_ready self r.buf;
|
||||||
r.buf <- Buf_pool.alloc self.buf_pool
|
r.buf <- Buf_pool.alloc self.buf_pool
|
||||||
);
|
);
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue