summaryrefslogtreecommitdiff
path: root/lib/select.c
diff options
context:
space:
mode:
authorMarcel Raad <raad@teamviewer.com>2017-03-28 01:37:31 +0200
committerMarcel Raad <raad@teamviewer.com>2017-03-30 08:49:30 +0200
commit1b4b2c1a59aaaf9dfc28290e9c54c410aa2d858a (patch)
tree63d24d51186c703652c3cb262bc2424314a95bf3 /lib/select.c
parentf8952932e7fb4de34d0310f9c5dd25d707c25b8d (diff)
downloadcurl-1b4b2c1a59aaaf9dfc28290e9c54c410aa2d858a.tar.gz
select: use correct SIZEOF_ constant
At least under Windows, there is no SIZEOF_LONG, so it evaluates to 0 even though sizeof(int) == sizeof(long). This should probably have been CURL_SIZEOF_LONG, but the type of timeout_ms changed from long to time_t anyway. This triggered MSVC warning C4668 about implicitly replacing undefined macros with '0'. Closes https://github.com/curl/curl/pull/1362
Diffstat (limited to 'lib/select.c')
-rw-r--r--lib/select.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/select.c b/lib/select.c
index 14dc6e134..f49314b34 100644
--- a/lib/select.c
+++ b/lib/select.c
@@ -164,7 +164,7 @@ int Curl_socket_check(curl_socket_t readfd0, /* two sockets to read from */
int r;
int ret;
-#if SIZEOF_LONG != SIZEOF_INT
+#if SIZEOF_TIME_T != SIZEOF_INT
/* wrap-around precaution */
if(timeout_ms >= INT_MAX)
timeout_ms = INT_MAX;