]> granicus.if.org Git - curl/commitdiff
parsedate: Fixed compilation warning
authorJiri Malak <malak.jiri@gmail.com>
Sun, 2 Mar 2014 08:04:35 +0000 (09:04 +0100)
committerDaniel Stenberg <daniel@haxx.se>
Sun, 2 Mar 2014 15:36:05 +0000 (16:36 +0100)
Remove compilation message for platforms where size of long type
is equal size of int type.

lib/parsedate.c

index 0262f13aaa26db2f551d2379c835029c428a785c..c4f0f45166e8907c174802a225e042ed5881a827 100644 (file)
@@ -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);