Skip to content

Commit b86e4b2

Browse files
committed
ATRONIX: Remove comparison between unsigned and zero
REBCNT is unsigned (cherry picked from commit f7d4816)
1 parent dc76d0b commit b86e4b2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/core/t-gob.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -818,7 +818,7 @@ const REBCNT Gob_Flag_Words[] = {
818818
case A_TAKE:
819819
len = D_REF(2) ? Get_Num_Arg(D_ARG(3)) : 1;
820820
if (index + len > tail) len = tail - index;
821-
if (index < 0 || index >= tail) goto is_none;
821+
if (index >= tail) goto is_none;
822822
if (!D_REF(2)) { // just one value
823823
VAL_SET(val, REB_GOB);
824824
VAL_GOB(val) = *GOB_SKIP(gob, index);

0 commit comments

Comments
 (0)