]> granicus.if.org Git - php/commitdiff
eliminate compile warning
authorAntony Dovgal <tony2001@php.net>
Mon, 15 Aug 2005 23:01:42 +0000 (23:01 +0000)
committerAntony Dovgal <tony2001@php.net>
Mon, 15 Aug 2005 23:01:42 +0000 (23:01 +0000)
ext/spl/spl_functions.c

index e86d72323476b41b1c89e3443e72485e07135cef..561cd97400e0ba0c7080ba22743c1cefb664c851 100755 (executable)
@@ -120,7 +120,7 @@ void spl_add_class_name(zval *list, zend_class_entry * pce, int allow, int ce_fl
                if (zend_u_hash_find(Z_ARRVAL_P(list), ztype, pce->name, len+1, (void*)&tmp) == FAILURE) {
                        MAKE_STD_ZVAL(tmp);
                        if (UG(unicode)) {
-                               ZVAL_UNICODEL(tmp, pce->name, pce->name_length, 1);
+                               ZVAL_UNICODEL(tmp, (UChar *)pce->name, pce->name_length, 1);
                        } else {
                                ZVAL_STRINGL(tmp, pce->name, pce->name_length, 1);
                        }