diff options
author | Anatol Belski <ab@php.net> | 2014-10-28 16:52:49 +0100 |
---|---|---|
committer | Anatol Belski <ab@php.net> | 2014-10-28 17:25:06 +0100 |
commit | e2951a191ef1afea777b865b9c80ac939b603f6b (patch) | |
tree | 33c56223a09e239e850e25a0bc19b190f1b422b3 /ext/com_dotnet | |
parent | 26e7e54e782d8ba80a7f964f0bfcc3a7920349c2 (diff) | |
download | php-git-e2951a191ef1afea777b865b9c80ac939b603f6b.tar.gz |
fix error code upcast on x64
Diffstat (limited to 'ext/com_dotnet')
-rw-r--r-- | ext/com_dotnet/com_misc.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/ext/com_dotnet/com_misc.c b/ext/com_dotnet/com_misc.c index 084a720ea1..f0b21ff014 100644 --- a/ext/com_dotnet/com_misc.c +++ b/ext/com_dotnet/com_misc.c @@ -36,7 +36,11 @@ void php_com_throw_exception(HRESULT code, char *message TSRMLS_DC) message = php_win32_error_to_msg(code); free_msg = 1; } +#if SIZEOF_ZEND_LONG == 8 + zend_throw_exception(php_com_exception_class_entry, message, (zend_long)(uint32_t)code TSRMLS_CC); +#else zend_throw_exception(php_com_exception_class_entry, message, (zend_long)code TSRMLS_CC); +#endif if (free_msg) { LocalFree(message); } |