Skip to content

Commit 575a8a8

Browse files
committed
fix count
1 parent 1f6a807 commit 575a8a8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

crates/vm/levm/src/call_frame.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -408,7 +408,7 @@ impl CallFrame {
408408
// and `while` guard checking i < len.
409409
unsafe { assert_unchecked(i + 32 < processed_bytecode.len()) };
410410
let bc = processed_bytecode[i] & !0x1F; // Keeps the high bits of PUSHN, i.e. the prefix
411-
let cnt = processed_bytecode[i] & 0x1F; // Keeps the low bits of PUSHN, i.e. the count
411+
let cnt = (processed_bytecode[i] & 0x1F) + 1; // Keeps the low bits of PUSHN, i.e. the count
412412
let cnt = cnt as usize;
413413
i += 1;
414414
if bc != 0x60 {

0 commit comments

Comments
 (0)