From: Dmitry Stogov Date: Mon, 9 Apr 2007 15:32:35 +0000 (+0000) Subject: Fixed 64-bit issues X-Git-Tag: php-5.2.2RC1~19 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=1b01048cd85e8e0e31c0eefa6cb46c2278046e69;p=php Fixed 64-bit issues --- diff --git a/ext/com_dotnet/com_variant.c b/ext/com_dotnet/com_variant.c index 45bebb6c63..a85bc42b62 100644 --- a/ext/com_dotnet/com_variant.c +++ b/ext/com_dotnet/com_variant.c @@ -943,6 +943,7 @@ PHP_FUNCTION(variant_date_to_timestamp) PHP_FUNCTION(variant_date_from_timestamp) { long timestamp; + time_t ttstamp; SYSTEMTIME systime; struct tm *tmv; VARIANT res; @@ -959,7 +960,8 @@ PHP_FUNCTION(variant_date_from_timestamp) VariantInit(&res); tzset(); - tmv = localtime(×tamp); + ttstamp = timestamp; + tmv = localtime(&ttstamp); memset(&systime, 0, sizeof(systime)); systime.wDay = tmv->tm_mday;