Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
CMake
CMake
Commits
fbaead2a
Commit
fbaead2a
authored
Oct 07, 2004
by
Andy Cedilnik
Browse files
COMP: Remove warning about assigning 0x8000000000000000L to long long
parent
e46b0a92
Changes
4
Hide whitespace changes
Inline
Side-by-side
Source/CTest/Curl/CMake/CurlTests.c
View file @
fbaead2a
...
...
@@ -521,3 +521,15 @@ main () {
return
0
;
}
#endif
#ifdef HAVE_LONG_LONG_CONSTANT
int
main
()
{
long
long
c
=
0x8000000000000000LL
;
long
long
k
=
0x7FFFFFFFFFFFFFFFLL
;
if
(
c
==
0x8000000000000000LL
&&
c
!=
k
)
{
return
0
;
}
return
1
;
}
#endif
Source/CTest/Curl/CMakeLists.txt
View file @
fbaead2a
...
...
@@ -446,6 +446,7 @@ ENDIF(HAVE_FILE_OFFSET_BITS)
FOREACH
(
CURL_TEST
HAVE_GLIBC_STRERROR_R
HAVE_POSIX_STRERROR_R
HAVE_LONG_LONG_CONSTANT
)
CURL_INTERNAL_TEST_RUN
(
${
CURL_TEST
}
)
ENDFOREACH
(
CURL_TEST
)
...
...
Source/CTest/Curl/config.h.in
View file @
fbaead2a
...
...
@@ -504,3 +504,6 @@
/* the signed version of size_t */
#cmakedefine ssize_t ${ssize_t}
/* define if the compiler supports number 0x3627676LL */
#cmakedefine HAVE_LONG_LONG_CONSTANT ${HAVE_LONG_LONG_CONSTANT}
Source/CTest/Curl/strtoofft.c
View file @
fbaead2a
...
...
@@ -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
;
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment