We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4bdc4da commit 1d9e80aCopy full SHA for 1d9e80a
ext/com_dotnet/com_extension.c
@@ -246,11 +246,7 @@ PHP_MINIT_FUNCTION(com_dotnet)
246
#define COM_CONST(x) REGISTER_LONG_CONSTANT(#x, x, CONST_CS|CONST_PERSISTENT)
247
248
#if SIZEOF_ZEND_LONG == 8
249
-# define COM_ERR_CONST(x) { \
250
- zend_long __tmp; \
251
- ULongToIntPtr(x, &__tmp); \
252
- REGISTER_LONG_CONSTANT(#x, __tmp, CONST_CS|CONST_PERSISTENT); \
253
-}
+# define COM_ERR_CONST(x) REGISTER_LONG_CONSTANT(#x, (zend_long) (ULONG) (x), CONST_CS|CONST_PERSISTENT)
254
#else
255
# define COM_ERR_CONST COM_CONST
256
#endif
0 commit comments