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:
parent
d8073db304
commit
85484355b3
@ -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);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user