aboutsummaryrefslogtreecommitdiff
path: root/lib/strtoofft.c
diff options
context:
space:
mode:
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;
}