diff options
Diffstat (limited to 'bytecode/encoding.c')
| -rw-r--r-- | bytecode/encoding.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/bytecode/encoding.c b/bytecode/encoding.c index 62c9762..520b6c3 100644 --- a/bytecode/encoding.c +++ b/bytecode/encoding.c @@ -34,7 +34,7 @@ static local parse_local(struct reader *r) panicf("local: no data!\n"); } local res = r->data.buf[0]; - if (res > 7) { + if (res >= NUM_LOCALS) { panicf("Invalid local (out of range): %d\n", res); } advance(r, 1); |
