From 34750cc738214008a6098e554584c2d88677ed92 Mon Sep 17 00:00:00 2001 From: Daniel Stenberg Date: Sun, 10 Oct 2004 03:28:51 +0000 Subject: Use LL suffix for long long constants if the compiler supports it, to prevent warnings. --- lib/strtoofft.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lib/strtoofft.c') 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; } -- cgit v1.2.3