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
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -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);