]> granicus.if.org Git - curl/commit
select: use correct SIZEOF_ constant
authorMarcel Raad <raad@teamviewer.com>
Mon, 27 Mar 2017 23:37:31 +0000 (01:37 +0200)
committerMarcel Raad <raad@teamviewer.com>
Thu, 30 Mar 2017 06:49:30 +0000 (08:49 +0200)
commit1b4b2c1a59aaaf9dfc28290e9c54c410aa2d858a
tree63d24d51186c703652c3cb262bc2424314a95bf3
parentf8952932e7fb4de34d0310f9c5dd25d707c25b8d
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
lib/select.c