curl-library
Subject: [PATCH] parsedate.c: Fixed compilation warning
From: Jiri Malak <malak.jiri_at_gmail.com>
Date: Sun, 2 Mar 2014 09:04:35 +0100
Date: Sun, 2 Mar 2014 09:04:35 +0100
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 0262f13..c4f0f45 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); -- 1.8.1.4 ------------------------------------------------------------------- List admin: http://cool.haxx.se/list/listinfo/curl-library Etiquette: http://curl.haxx.se/mail/etiquette.htmlReceived on 2014-03-02