From: Marty Kuhrt Date: Fri, 30 Dec 2005 00:35:21 +0000 (+0000) Subject: fix questionable compare X-Git-Tag: curl-7_15_2~97 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0040a60559a3bdc9aaf295727cd07a37f0362e70;p=thirdparty%2Fcurl.git fix questionable compare --- diff --git a/lib/parsedate.c b/lib/parsedate.c index 864231b0e7..37b4ddfe36 100644 --- a/lib/parsedate.c +++ b/lib/parsedate.c @@ -390,7 +390,7 @@ static time_t Curl_parsedate(const char *date) */ t = mktime(&tm); - /* time zone adjust */ + /* time zone adjust (cast t to int to compare to negative one) */ if(-1 != (int)t) { struct tm *gmt; long delta;