aboutsummaryrefslogtreecommitdiff
path: root/src/main.c
diff options
context:
space:
mode:
authorYang Tse <yangsita@gmail.com>2008-08-13 13:07:50 +0000
committerYang Tse <yangsita@gmail.com>2008-08-13 13:07:50 +0000
commit64e3a091c34482b666c3c50c312829cd7fa140c9 (patch)
tree9b13440e6258fd318bfeb92a6d5c80a63b0b2d77 /src/main.c
parenta2c50a980ccf6d4b0f8d7ce7873ca6ac29e28d46 (diff)
Split comparison among several lines for debugging
Diffstat (limited to 'src/main.c')
-rw-r--r--src/main.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/main.c b/src/main.c
index 584f7dfb5..0eaf8f7f5 100644
--- a/src/main.c
+++ b/src/main.c
@@ -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 */
*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;
#else
*val = strtol(str, NULL, 0);