diff options
-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); |