From 3fa3fd0796b86ccd54350d0f45e257e8631060dc Mon Sep 17 00:00:00 2001 From: Joel Dice Date: Tue, 29 Apr 2008 14:24:08 -0600 Subject: [PATCH] fix stack index calculation when pushing operands --- src/compiler.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/compiler.cpp b/src/compiler.cpp index a9e0fd776b..d6cd216115 100644 --- a/src/compiler.cpp +++ b/src/compiler.cpp @@ -1860,7 +1860,7 @@ popState(Context* c) Stack* stack(Context* c, Value* value, unsigned size, Stack* next) { - return stack(c, value, size, (next ? next->index + size : 0), next); + return stack(c, value, size, (next ? next->index + next->size : 0), next); } void