Skip to content

Commit cce016e

Browse files
committed
Tweak to reduce stack usage
1 parent 61e8f83 commit cce016e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/picos/picos.ocaml5.ml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -469,10 +469,10 @@ module Fiber = struct
469469
else
470470
match body (r.forbid <- forbid) with
471471
| value ->
472-
r.forbid <- not forbid;
472+
r.forbid <- not r.forbid;
473473
value
474474
| exception exn ->
475-
r.forbid <- not forbid;
475+
r.forbid <- not r.forbid;
476476
raise exn
477477

478478
let forbid t body = explicitly t body ~forbid:true

0 commit comments

Comments
 (0)