Skip to content
This repository was archived by the owner on Nov 3, 2021. It is now read-only.

Commit 4151b1e

Browse files
committed
Fix algo for br_if
1 parent 28258c4 commit 4151b1e

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

document/core/appendix/algorithm.rst

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -213,8 +213,7 @@ Other instructions are checked in a similar manner.
213213
case (br_if n)
214214
     error_if(ctrls.size() < n)
215215
pop_val(I32)
216-
      pop_vals(ctrls[n].label_types)
217-
      push_vals(ctrls[n].label_types)
216+
      push_vals(pop_vals(ctrls[n].label_types))
218217
219218
   case (br_table n* m)
220219
pop_val(I32)

0 commit comments

Comments
 (0)