Skip to content

Commit 6cfc9d9

Browse files
committed
ATRONIX/FIX: Add an assert in Loop_Each to help coverity
(cherry picked from commit 45de264)
1 parent 9a9b195 commit 6cfc9d9

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/core/n-loop.c

+2
Original file line numberDiff line numberDiff line change
@@ -276,6 +276,8 @@
276276
REBCNT i;
277277
REBCNT j;
278278

279+
ASSERT2(mode >= 0 && mode < 3, RP_MISC);
280+
279281
value = D_ARG(2); // series
280282
if (IS_NONE(value)) return R_NONE;
281283

0 commit comments

Comments
 (0)