Skip to content

Commit 9448d96

Browse files
committed
FIX: integer overflow when making TIME
This fix the problem: >> make time! [596524000 0 0] == 764:26:40 >> to integer! 764:26:40 == 2752000 Found by coverity (cherry picked from commit 4fb7b16) (cherry picked from commit 25eac2a)
1 parent bc24f6d commit 9448d96

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/core/t-time.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -199,7 +199,7 @@
199199
}
200200
else if (ANY_BLOCK(val) && VAL_BLK_LEN(val) <= 3) {
201201
REBFLG neg = FALSE;
202-
REBINT i;
202+
REBI64 i;
203203

204204
val = VAL_BLK_DATA(val);
205205
if (!IS_INTEGER(val)) goto no_time;

0 commit comments

Comments
 (0)