]> git.ipfire.org Git - thirdparty/curl.git/commit
tool_operate: fix MinGW compiler warning 1378/head
authorMarcel Raad <raad@teamviewer.com>
Sat, 1 Apr 2017 09:50:39 +0000 (11:50 +0200)
committerMarcel Raad <raad@teamviewer.com>
Wed, 5 Apr 2017 11:08:16 +0000 (13:08 +0200)
commitb547fff566cb7644273716a6e052c5ae6d3f5bef
tree7c23666d72b813e691f94f05cedfdf3d2bf4f628
parent446eaa941d29dd728a81847b5ca2424b0f254cf5
tool_operate: fix MinGW compiler warning

MinGW complains:
tool_operate.c:197:15: error: comparison is always true due to limited range
of data type [-Werror=type-limits]

Fix this by only doing the comparison if 'long' is large enough to hold the
constant it is compared with.

Closes https://github.com/curl/curl/pull/1378
src/tool_operate.c