]> granicus.if.org Git - php/commitdiff
typeconversion is needed here for cygwin
authorMarcus Boerger <helly@php.net>
Thu, 12 Dec 2002 12:18:44 +0000 (12:18 +0000)
committerMarcus Boerger <helly@php.net>
Thu, 12 Dec 2002 12:18:44 +0000 (12:18 +0000)
ext/openssl/openssl.c

index 1c44e00afc6e62e74d485d7caea88ef1292daae3..44a4bc80ea2c3b461c71a5f5ae69135c6ea1854a 100644 (file)
@@ -298,7 +298,7 @@ static time_t asn1_time_to_time_t(ASN1_UTCTIME * timestr TSRMLS_DC)
        ** the value of timezone - 3600 seconds. Otherwise, we need to overcorrect and
        ** set the adjustment to the main timezone + 3600 seconds.
        */
-       gmadjust = -(thetime.tm_isdst ? timezone - 3600 : timezone + 3600);
+       gmadjust = -(thetime.tm_isdst ? (long)timezone - 3600 : (long)timezone + 3600);
 #endif
        ret += gmadjust;