From dd702a23dced4fa1ec4165f92d6f1c231f5fb4f7 Mon Sep 17 00:00:00 2001 From: Marcus Boerger Date: Sat, 29 Oct 2005 15:44:37 +0000 Subject: [PATCH] - Fix stupid unicode warnings --- ext/spl/spl_iterators.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/ext/spl/spl_iterators.c b/ext/spl/spl_iterators.c index 4670531e57..a8046ed06d 100755 --- a/ext/spl/spl_iterators.c +++ b/ext/spl/spl_iterators.c @@ -474,7 +474,7 @@ SPL_METHOD(RecursiveIteratorIterator, key) RETURN_STRINGL(str_key, str_key_len-1, 0); break; case HASH_KEY_IS_UNICODE: - RETURN_UNICODEL(str_key, str_key_len-1, 0); + RETURN_UNICODEL((void*)str_key, str_key_len-1, 0); break; case HASH_KEY_IS_BINARY: RETURN_BINARYL(str_key, str_key_len-1, 0); @@ -1734,7 +1734,7 @@ SPL_METHOD(CachingIterator, __toString) if (intern->current.key_type == HASH_KEY_IS_STRING) { RETURN_STRINGL(intern->current.str_key, intern->current.str_key_len, 1); } else if (intern->current.key_type == HASH_KEY_IS_UNICODE) { - RETURN_UNICODEL(intern->current.str_key, intern->current.str_key_len, 1); + RETURN_UNICODEL((void*)intern->current.str_key, intern->current.str_key_len, 1); } else if (intern->current.key_type == HASH_KEY_IS_BINARY) { RETURN_BINARYL(intern->current.str_key, intern->current.str_key_len, 1); } else { @@ -2053,7 +2053,7 @@ SPL_METHOD(NoRewindIterator, key) RETURN_STRINGL(str_key, str_key_len-1, 0); break; case HASH_KEY_IS_UNICODE: - RETURN_UNICODEL(str_key, str_key_len-1, 0); + RETURN_UNICODEL((void*)str_key, str_key_len-1, 0); break; case HASH_KEY_IS_BINARY: RETURN_BINARYL(str_key, str_key_len-1, 0); -- 2.50.1