]> granicus.if.org Git - php/commitdiff
shut up warnings
authorAntony Dovgal <tony2001@php.net>
Fri, 12 Aug 2005 20:58:28 +0000 (20:58 +0000)
committerAntony Dovgal <tony2001@php.net>
Fri, 12 Aug 2005 20:58:28 +0000 (20:58 +0000)
ext/spl/spl_iterators.c

index 48ec2d1883469b828a1db47505e1c0a56530210c..c70573d5c246f81b0158672a0b6bba9ec0a06f75 100755 (executable)
@@ -952,7 +952,7 @@ SPL_METHOD(dual_it, key)
                } else if (intern->current.key_type == HASH_KEY_IS_BINARY) {
                        RETURN_BINARYL(intern->current.str_key, intern->current.str_key_len-1, 1);
                } else if (intern->current.key_type == HASH_KEY_IS_UNICODE) {
-                       RETURN_UNICODEL(intern->current.str_key, intern->current.str_key_len-1, 1);
+                       RETURN_UNICODEL((UChar *)intern->current.str_key, intern->current.str_key_len-1, 1);
                } else {
                        RETURN_LONG(intern->current.int_key);
                }