Use stroll() for proper long long int parsing
This commit is contained in:
parent
571d98c924
commit
9ccd4cf4fb
|
@ -48,7 +48,7 @@ list(INSERT CMAKE_MODULE_PATH 0 ${CMAKE_SOURCE_DIR}/cmake/Modules)
|
|||
# Set the version information here
|
||||
set(VERSION_INFO_MAJOR_VERSION 1)
|
||||
set(VERSION_INFO_API_COMPAT 4)
|
||||
set(VERSION_INFO_MINOR_VERSION 0)
|
||||
set(VERSION_INFO_MINOR_VERSION 1)
|
||||
set(VERSION_INFO_MAINT_VERSION git)
|
||||
|
||||
########################################################################
|
||||
|
|
|
@ -322,7 +322,7 @@ namespace gr
|
|||
{
|
||||
long long int f;
|
||||
char *end;
|
||||
f = strtol ((char *) buf, &end, 10);
|
||||
f = strtoll ((char *) buf, &end, 10);
|
||||
|
||||
/* Check for various possible errors */
|
||||
if ((errno == ERANGE && (f == LLONG_MAX || f == LLONG_MIN))
|
||||
|
|
Loading…
Reference in New Issue