summaryrefslogtreecommitdiffstats
path: root/Source/CTest/Curl/strtoofft.c
diff options
context:
space:
mode:
authorAndy Cedilnik <andy.cedilnik@kitware.com>2004-10-07 21:48:36 (GMT)
committerAndy Cedilnik <andy.cedilnik@kitware.com>2004-10-07 21:48:36 (GMT)
commitfbaead2a09e70c7bf6deaf86c536caedccb26792 (patch)
tree79e749368c2fc2b4204bc5063ab1b2c73490d406 /Source/CTest/Curl/strtoofft.c
parente46b0a9290808c5680cf817e96064bd2a0000556 (diff)
downloadCMake-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.c7
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;
}