Skip to content

Commit 22f7931

Browse files
committed
FIX: reverted leaked unwanted modification in the previous commit
1 parent 1150994 commit 22f7931

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/core/n-control.c

+3-2
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ enum {
9090
{
9191
if (ANY_SERIES(value) || IS_MAP(value) || IS_BITSET(value))
9292
Protect_Series(value, flags);
93-
else if (ANY_OBJECT(value))
93+
else if (IS_OBJECT(value) || IS_MODULE(value))
9494
Protect_Object(value, flags);
9595
}
9696

@@ -813,11 +813,12 @@ enum {
813813
REBVAL *blk = VAL_BLK_DATA(D_ARG(2));
814814
REBVAL *result;
815815
REBOOL all = D_REF(5);
816+
REBOOL is_case = D_REF(6);
816817
REBOOL found = FALSE;
817818

818819
// Find value in case block...
819820
for (; NOT_END(blk); blk++) {
820-
if (!IS_BLOCK(blk) && 0 == Cmp_Value(DS_ARG(1), blk, FALSE)) { // avoid stack move
821+
if (!IS_BLOCK(blk) && 0 == Cmp_Value(DS_ARG(1), blk, is_case)) { // avoid stack move
821822
// Skip forward to block...
822823
for (; !IS_BLOCK(blk) && NOT_END(blk); blk++);
823824
if (IS_END(blk)) break;

0 commit comments

Comments
 (0)