From 85484355b313b2176772c13f19754248b31aebf0 Mon Sep 17 00:00:00 2001 From: Jiri Malak Date: Sun, 2 Mar 2014 09:04:35 +0100 Subject: parsedate: Fixed compilation warning Remove compilation message for platforms where size of long type is equal size of int type. --- lib/parsedate.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/parsedate.c b/lib/parsedate.c index 0262f13aa..c4f0f4516 100644 --- a/lib/parsedate.c +++ b/lib/parsedate.c @@ -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); -- cgit v1.2.3