You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In the case of strings that represent values that are out of the range of representable values by a long long, strtoll() will return LLONG_MAX or LLONG_MIN and set errno to ERANGE.
In the case of strings that represent values that are out of the range of representable values by a
long long
,strtoll()
will returnLLONG_MAX
orLLONG_MIN
and seterrno
toERANGE
.See the Return Value section of:
http://www.cplusplus.com/reference/cstdlib/strtoll/
I imagine that after calling
strtoll()
here you could checkerrno
, and returnNA
if it is set toERANGE
(possibly with a warning), which seems like it might be better behavior for Rhttps://github.com/truecluster/bit64/blob/e428535bc31982d85bc3f4faa1f2ae8481280781/src/integer64.c#L205
The text was updated successfully, but these errors were encountered: