diff --git a/src/compiler.cpp b/src/compiler.cpp index 99d45120db..a9e0fd776b 100644 --- a/src/compiler.cpp +++ b/src/compiler.cpp @@ -2209,8 +2209,8 @@ class MyCompiler: public Compiler { virtual Operand* peek(unsigned size UNUSED, unsigned index) { Stack* s = c.state->stack; for (unsigned i = index; i > 0;) { - s = s->next; i -= s->size; + s = s->next; } assert(&c, s->size == ceiling(size, BytesPerWord)); return s->value;