mirror of https://github.com/moparisthebest/curl
Split comparison among several lines for debugging
This commit is contained in:
parent
a2c50a980c
commit
64e3a091c3
|
@ -1399,7 +1399,9 @@ static int str2offset(curl_off_t *val, const char *str)
|
||||||
/* this is a duplicate of the function that is also used in libcurl */
|
/* this is a duplicate of the function that is also used in libcurl */
|
||||||
*val = curlx_strtoofft(str, NULL, 0);
|
*val = curlx_strtoofft(str, NULL, 0);
|
||||||
|
|
||||||
if ((*val == LLONG_MAX || *val == LLONG_MIN) && ERRNO == ERANGE)
|
if( ( (*val == LLONG_MAX) ||
|
||||||
|
(*val == LLONG_MIN) ) &&
|
||||||
|
(ERRNO == ERANGE) )
|
||||||
return 1;
|
return 1;
|
||||||
#else
|
#else
|
||||||
*val = strtol(str, NULL, 0);
|
*val = strtol(str, NULL, 0);
|
||||||
|
|
Loading…
Reference in New Issue