fix undefined-order-of-operations bug in Frame::dupped

This commit is contained in:
Joel Dice 2009-02-28 14:41:05 -07:00
parent 3e6c30a4b5
commit 60c4bede39

View File

@ -812,7 +812,8 @@ class Frame {
void dupped() { void dupped() {
assert(t, sp + 1 <= frameSize()); assert(t, sp + 1 <= frameSize());
assert(t, sp - 1 >= localSize()); assert(t, sp - 1 >= localSize());
set(sp++, get(sp - 1)); set(sp, get(sp - 1));
++ sp;
} }
void duppedX1() { void duppedX1() {