diff options
author | Jiri Malak <malak.jiri@gmail.com> | 2014-03-02 09:04:35 +0100 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2014-03-02 16:36:05 +0100 |
commit | 85484355b313b2176772c13f19754248b31aebf0 (patch) | |
tree | be53c3782be2f068300e82d5e8114cde74eba827 | |
parent | d8073db3042d9c53af7975cccb1ece81a2513de8 (diff) | |
download | curl-85484355b313b2176772c13f19754248b31aebf0.tar.gz |
parsedate: Fixed compilation warning
Remove compilation message for platforms where size of long type
is equal size of int type.
-rw-r--r-- | lib/parsedate.c | 2 |
1 files changed, 2 insertions, 0 deletions
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); |