1
0
mirror of https://github.com/moparisthebest/curl synced 2024-12-22 08:08:50 -05:00

parsedate: Fixed compilation warning

Remove compilation message for platforms where size of long type
is equal size of int type.
This commit is contained in:
Jiri Malak 2014-03-02 09:04:35 +01:00 committed by Daniel Stenberg
parent d8073db304
commit 85484355b3

View File

@ -410,8 +410,10 @@ static int parsedate(const char *date, time_t *output)
if(error) if(error)
return PARSEDATE_FAIL; return PARSEDATE_FAIL;
#if LONG_MAX != INT_MAX
if((lval > (long)INT_MAX) || (lval < (long)INT_MIN)) if((lval > (long)INT_MAX) || (lval < (long)INT_MIN))
return PARSEDATE_FAIL; return PARSEDATE_FAIL;
#endif
val = curlx_sltosi(lval); val = curlx_sltosi(lval);