From 1b01048cd85e8e0e31c0eefa6cb46c2278046e69 Mon Sep 17 00:00:00 2001 From: Dmitry Stogov Date: Mon, 9 Apr 2007 15:32:35 +0000 Subject: [PATCH] Fixed 64-bit issues --- ext/com_dotnet/com_variant.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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; -- 2.50.1