summaryrefslogtreecommitdiff
path: root/lib/strtoofft.c
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2004-10-10 03:28:51 +0000
committerDaniel Stenberg <daniel@haxx.se>2004-10-10 03:28:51 +0000
commit34750cc738214008a6098e554584c2d88677ed92 (patch)
tree9098d8daf48786e18ac8dbdfc94e28ee59443463 /lib/strtoofft.c
parentaf677c4e1d399a8b3111435ff3c0691a27075735 (diff)
downloadcurl-34750cc738214008a6098e554584c2d88677ed92.tar.gz
Use LL suffix for long long constants if the compiler supports it, to prevent
warnings.
Diffstat (limited to 'lib/strtoofft.c')
-rw-r--r--lib/strtoofft.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/strtoofft.c b/lib/strtoofft.c
index f6abc20a0..391f80d24 100644
--- a/lib/strtoofft.c
+++ b/lib/strtoofft.c
@@ -112,9 +112,9 @@ curlx_strtoll(const char *nptr, char **endptr, int base)
}
else {
if (is_negative)
- value = 0x8000000000000000L;
+ value = CURL_LLONG_MIN;
else
- value = 0x7FFFFFFFFFFFFFFFL;
+ value = CURL_LLONG_MAX;
errno = ERANGE;
}