diff options
author | Andy Cedilnik <andy.cedilnik@kitware.com> | 2004-10-07 21:48:36 (GMT) |
---|---|---|
committer | Andy Cedilnik <andy.cedilnik@kitware.com> | 2004-10-07 21:48:36 (GMT) |
commit | fbaead2a09e70c7bf6deaf86c536caedccb26792 (patch) | |
tree | 79e749368c2fc2b4204bc5063ab1b2c73490d406 /Source/CTest/Curl/strtoofft.c | |
parent | e46b0a9290808c5680cf817e96064bd2a0000556 (diff) | |
download | CMake-fbaead2a09e70c7bf6deaf86c536caedccb26792.zip CMake-fbaead2a09e70c7bf6deaf86c536caedccb26792.tar.gz CMake-fbaead2a09e70c7bf6deaf86c536caedccb26792.tar.bz2 |
COMP: Remove warning about assigning 0x8000000000000000L to long long
Diffstat (limited to 'Source/CTest/Curl/strtoofft.c')
-rw-r--r-- | Source/CTest/Curl/strtoofft.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/Source/CTest/Curl/strtoofft.c b/Source/CTest/Curl/strtoofft.c index 1bcfb1a..e2b02c4 100644 --- a/Source/CTest/Curl/strtoofft.c +++ b/Source/CTest/Curl/strtoofft.c @@ -111,10 +111,17 @@ curlx_strtoll(const char *nptr, char **endptr, int base) } } else { +#ifdef HAVE_LONG_LONG_CONSTANT + if (is_negative) + value = 0x8000000000000000LL; + else + value = 0x7FFFFFFFFFFFFFFFLL; +#else if (is_negative) value = 0x8000000000000000L; else value = 0x7FFFFFFFFFFFFFFFL; +#endif errno = ERANGE; } |