mirror of
https://github.com/moparisthebest/curl
synced 2024-12-21 23:58:49 -05:00
Use LL suffix for long long constants if the compiler supports it, to prevent
warnings.
This commit is contained in:
parent
af677c4e1d
commit
34750cc738
@ -112,9 +112,9 @@ curlx_strtoll(const char *nptr, char **endptr, int base)
|
|||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
if (is_negative)
|
if (is_negative)
|
||||||
value = 0x8000000000000000L;
|
value = CURL_LLONG_MIN;
|
||||||
else
|
else
|
||||||
value = 0x7FFFFFFFFFFFFFFFL;
|
value = CURL_LLONG_MAX;
|
||||||
|
|
||||||
errno = ERANGE;
|
errno = ERANGE;
|
||||||
}
|
}
|
||||||
|
@ -58,5 +58,13 @@ curl_off_t curlx_strtoll(const char *nptr, char **endptr, int base);
|
|||||||
#define curlx_strtoofft strtol
|
#define curlx_strtoofft strtol
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#ifdef HAVE_LL
|
||||||
|
#define CURL_LLONG_MIN 0x8000000000000000LL
|
||||||
|
#define CURL_LLONG_MAX 0x7FFFFFFFFFFFFFFFLL
|
||||||
|
#else
|
||||||
|
#define CURL_LLONG_MIN 0x8000000000000000L
|
||||||
|
#define CURL_LLONG_MAX 0x7FFFFFFFFFFFFFFFL
|
||||||
|
#endif
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user