diff options
author | Dmitry Stogov <dmitry@php.net> | 2007-04-09 15:32:35 +0000 |
---|---|---|
committer | Dmitry Stogov <dmitry@php.net> | 2007-04-09 15:32:35 +0000 |
commit | 1b01048cd85e8e0e31c0eefa6cb46c2278046e69 (patch) | |
tree | 09148749a804288f9917ba01ba601643f762657c /ext/com_dotnet | |
parent | 6c394c8b38345cbc2da5bbfbfaa94dc1a70282a6 (diff) | |
download | php-git-1b01048cd85e8e0e31c0eefa6cb46c2278046e69.tar.gz |
Fixed 64-bit issues
Diffstat (limited to 'ext/com_dotnet')
-rw-r--r-- | ext/com_dotnet/com_variant.c | 4 |
1 files changed, 3 insertions, 1 deletions
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; |