Skip to content

Commit 7ddfe8f

Browse files
authored
[spec] Fix field renaming inconsistency (#1952)
1 parent c840c58 commit 7ddfe8f

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

document/core/appendix/algorithm.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -179,8 +179,8 @@ However, these variables are not manipulated directly by the main checking funct
179179
vals.push(type)
180180
181181
func pop_val() : val_type =
182-
if (vals.size() = ctrls[0].height && ctrls[0].unreachable) return Bot
183-
error_if(vals.size() = ctrls[0].height)
182+
if (vals.size() = ctrls[0].val_height && ctrls[0].unreachable) return Bot
183+
error_if(vals.size() = ctrls[0].val_height)
184184
return vals.pop()
185185
186186
func pop_val(expect : val_type) : val_type =
@@ -268,7 +268,7 @@ The control stack is likewise manipulated through auxiliary functions:
268268
return (if (frame.opcode = loop) frame.start_types else frame.end_types)
269269
270270
func unreachable() =
271-
vals.resize(ctrls[0].height)
271+
vals.resize(ctrls[0].val_height)
272272
ctrls[0].unreachable := true
273273
274274
Pushing a control frame takes the types of the label and result values.

0 commit comments

Comments
 (0)