Use stroll() for proper long long int parsing

This commit is contained in:
Manolis Surligas 2018-09-17 23:26:09 +03:00
parent 571d98c924
commit 9ccd4cf4fb
2 changed files with 2 additions and 2 deletions

View File

@ -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)
########################################################################

View File

@ -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))