diff options
author | Rob Richards <rrichards@php.net> | 2003-06-02 18:57:59 +0000 |
---|---|---|
committer | Rob Richards <rrichards@php.net> | 2003-06-02 18:57:59 +0000 |
commit | df62ddd21351e8a39e9171e3c7c3f2f368b4fb3f (patch) | |
tree | 3e145bdcda3f411d38846a89bc510ebf2c0a923e /ext/domxml/php_domxml.c | |
parent | 1011d196b109da7b6ea400aaef0208052546bf8e (diff) | |
download | php-git-df62ddd21351e8a39e9171e3c7c3f2f368b4fb3f.tar.gz |
Fix for 64 bit platforms (by Joe Orton)
Diffstat (limited to 'ext/domxml/php_domxml.c')
-rw-r--r-- | ext/domxml/php_domxml.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/ext/domxml/php_domxml.c b/ext/domxml/php_domxml.c index 01fc2ddfa7..681d4b2fcb 100644 --- a/ext/domxml/php_domxml.c +++ b/ext/domxml/php_domxml.c @@ -866,7 +866,7 @@ static void php_xsltstylesheet_set_object(zval *wrapper, void *obj, int rsrc_typ MAKE_STD_ZVAL(addr); Z_TYPE_P(addr) = IS_LONG; - Z_LVAL_P(addr) = (int) obj; + Z_LVAL_P(addr) = (long) obj; zend_hash_index_update(Z_OBJPROP_P(wrapper), 0, &handle, sizeof(zval *), NULL); zend_hash_index_update(Z_OBJPROP_P(wrapper), 1, &addr, sizeof(zval *), NULL); @@ -980,7 +980,7 @@ static void php_xpath_set_context(zval *wrapper, void *obj, int rsrc_type TSRMLS MAKE_STD_ZVAL(addr); Z_TYPE_P(addr) = IS_LONG; - Z_LVAL_P(addr) = (int) obj; + Z_LVAL_P(addr) = (long) obj; zend_hash_index_update(Z_OBJPROP_P(wrapper), 0, &handle, sizeof(zval *), NULL); zend_hash_index_update(Z_OBJPROP_P(wrapper), 1, &addr, sizeof(zval *), NULL); @@ -1035,7 +1035,7 @@ static void php_xmlparser_set_object(zval *wrapper, void *obj, int rsrc_type TSR MAKE_STD_ZVAL(addr); Z_TYPE_P(addr) = IS_LONG; - Z_LVAL_P(addr) = (int) obj; + Z_LVAL_P(addr) = (long) obj; zend_hash_index_update(Z_OBJPROP_P(wrapper), 0, &handle, sizeof(zval *), NULL); zend_hash_index_update(Z_OBJPROP_P(wrapper), 1, &addr, sizeof(zval *), NULL); @@ -1151,7 +1151,7 @@ static void php_dom_set_object(zval *wrapper, void *obj, int rsrc_type TSRMLS_DC MAKE_STD_ZVAL(addr); Z_TYPE_P(addr) = IS_LONG; - Z_LVAL_P(addr) = (int) obj; + Z_LVAL_P(addr) = (long) obj; zend_hash_index_update(Z_OBJPROP_P(wrapper), 0, &handle, sizeof(zval *), NULL); zend_hash_index_update(Z_OBJPROP_P(wrapper), 1, &addr, sizeof(zval *), NULL); |