From 60c4bede39541d747e587fd117c559e911d365e0 Mon Sep 17 00:00:00 2001 From: Joel Dice Date: Sat, 28 Feb 2009 14:41:05 -0700 Subject: [PATCH] fix undefined-order-of-operations bug in Frame::dupped --- src/compile.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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() {