From 2504d841d94c51aedc910d0671605fb52ebe0959 Mon Sep 17 00:00:00 2001 From: dipterix Date: Wed, 11 Aug 2021 20:25:16 -0400 Subject: [PATCH] handle overflow properly --- src/integer64.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/integer64.c b/src/integer64.c index cece24a..c1ef1a4 100644 --- a/src/integer64.c +++ b/src/integer64.c @@ -100,7 +100,7 @@ SEXP as_integer64_double(SEXP x_, SEXP ret_){ if (ISNAN(x[i])) ret[i] = NA_INTEGER64; else{ - if (x[i]imax){ + if (x[i]=imax){ ret[i] = NA_INTEGER64; naflag = TRUE; }else