Skip to content

Commit 2f5847d

Browse files
committed
More fixes
1 parent 11db50c commit 2f5847d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

runtime/wasm/unix.wat

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1551,7 +1551,7 @@
15511551
(tuple.extract 3 1 (local.get $p))
15521552
(tuple.extract 3 2 (local.get $p))
15531553
(i32.const 0)
1554-
(i64.const 0x400000) ;; allow fd_filestat_set_size
1554+
(i64.const 0x400040) ;; allow fd_filestat_set_size and fd_write
15551555
(i64.const 0)
15561556
(i32.const 0)
15571557
(local.get $buffer)))
@@ -2391,7 +2391,7 @@
23912391
(local.set $kind (i32.load8_u offset=16 (local.get $buffer)))
23922392
(block $ok
23932393
(block $bad
2394-
(br_table $bad $bad $ok $bad $ok $bad $ok $bad (local.get $kind)))
2394+
(br_table $ok $bad $ok $bad $ok $bad $ok $bad (local.get $kind)))
23952395
(call $caml_unix_error
23962396
(i32.const 28) (; EINVAL ;)
23972397
(call $channel_of_descr_name (local.get $out))

0 commit comments

Comments
 (0)