fix: fix ambiguous sequence point in dup macro by extracting peek to local variable
This commit is contained in:
+5
-1
@@ -559,7 +559,11 @@ static bool runInterpreter(WrenVM* vm)
|
||||
}
|
||||
|
||||
CASE_CODE(POP): DROP(); DISPATCH();
|
||||
CASE_CODE(DUP): PUSH(PEEK()); DISPATCH();
|
||||
CASE_CODE(DUP):
|
||||
{
|
||||
Value value = PEEK();
|
||||
PUSH(value); DISPATCH();
|
||||
}
|
||||
|
||||
CASE_CODE(NULL): PUSH(NULL_VAL); DISPATCH();
|
||||
CASE_CODE(FALSE): PUSH(FALSE_VAL); DISPATCH();
|
||||
|
||||
Reference in New Issue
Block a user