Skip to content
Snippets Groups Projects
Commit 85484355 authored by Jiří Malák's avatar Jiří Malák Committed by Daniel Stenberg
Browse files

parsedate: Fixed compilation warning

Remove compilation message for platforms where size of long type
is equal size of int type.
parent d8073db3
No related branches found
No related tags found
No related merge requests found
......@@ -410,8 +410,10 @@ static int parsedate(const char *date, time_t *output)
if(error)
return PARSEDATE_FAIL;
#if LONG_MAX != INT_MAX
if((lval > (long)INT_MAX) || (lval < (long)INT_MIN))
return PARSEDATE_FAIL;
#endif
val = curlx_sltosi(lval);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment