diff options
| author | Rob Richards <rrichards@php.net> | 2003-06-02 18:58:48 +0000 |
|---|---|---|
| committer | Rob Richards <rrichards@php.net> | 2003-06-02 18:58:48 +0000 |
| commit | 1505f6af039296f3a7a2317ed80784856a215671 (patch) | |
| tree | 97848ae72e4790af80ba81a707a4527e28a8bf2e /ext/domxml/php_domxml.c | |
| parent | 35659b625fe54d9582a003a2282c3cab60c3d87f (diff) | |
| download | php-git-1505f6af039296f3a7a2317ed80784856a215671.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 398f87066e..41a1f5bd06 100644 --- a/ext/domxml/php_domxml.c +++ b/ext/domxml/php_domxml.c @@ -858,7 +858,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); @@ -972,7 +972,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); @@ -1027,7 +1027,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); @@ -1144,7 +1144,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); |
