Skip to content

Commit

Permalink
Fix proc table size in generated .wat
Browse files Browse the repository at this point in the history
  • Loading branch information
LunaAmora committed Mar 30, 2022
1 parent 3ff9476 commit 64472dd
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions 4orth.porth
Original file line number Diff line number Diff line change
Expand Up @@ -616,9 +616,9 @@ in
1 +
end drop

"\n(table " bfd bputs
proc-index @64 1 - bfd bputu
" funcref)\n" bfd bputs
"\n(table " bfd bputs
proc-index @64 bfd bputu
" funcref)\n" bfd bputs

strlits-count @64 0 > if
"\n(data (i32.const " bfd bputs wat-string-section bfd bputu ")\n" bfd bputs
Expand Down

0 comments on commit 64472dd

Please sign in to comment.