Skip to content

Commit 340fd74

Browse files
committed
Avoid assignment inside the macro call
This causes multiple assignments, which has undefined sequences
1 parent f96a0e3 commit 340fd74

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/core/c-do.c

+2-1
Original file line numberDiff line numberDiff line change
@@ -449,7 +449,8 @@ void Trace_Arg(REBINT num, REBVAL *arg, REBVAL *path)
449449
pvs.store = DS_TOP; // Temp space for constructed results
450450

451451
// Get first block value:
452-
pvs.path = VAL_BLK_DATA(pvs.orig = *path_val);
452+
pvs.orig = *path_val;
453+
pvs.path = VAL_BLK_DATA(pvs.orig);
453454

454455
// Lookup the value of the variable:
455456
if (IS_WORD(pvs.path)) {

0 commit comments

Comments
 (0)