diff --git a/src/compile.cpp b/src/compile.cpp index 81666b10e7..71db9c8d57 100644 --- a/src/compile.cpp +++ b/src/compile.cpp @@ -812,7 +812,8 @@ class Frame { void dupped() { assert(t, sp + 1 <= frameSize()); assert(t, sp - 1 >= localSize()); - set(sp++, get(sp - 1)); + set(sp, get(sp - 1)); + ++ sp; } void duppedX1() {