]> granicus.if.org Git - php/commitdiff
fix compile warnings again
authorAntony Dovgal <tony2001@php.net>
Wed, 12 Oct 2005 14:43:55 +0000 (14:43 +0000)
committerAntony Dovgal <tony2001@php.net>
Wed, 12 Oct 2005 14:43:55 +0000 (14:43 +0000)
ext/mbstring/oniguruma/enc/koi8.c

index 84afa1afef39bf69c9f0a2301cd0d039b28718c8..f8a5a1da617fdb0715b7b24d6720a33c6c9ade3b 100644 (file)
@@ -105,9 +105,9 @@ static unsigned short EncKOI8_CtypeTable[256] = {
 
 static int
 koi8_mbc_to_normalize(OnigAmbigType flag,
-                            UChar** pp, UChar* end, UChar* lower)
+                            const UChar** pp, const UChar* end, UChar* lower)
 {
-  UChar* p = *pp;
+  UChar* p = (UChar *)*pp;
 
   if (((flag & ONIGENC_AMBIGUOUS_MATCH_ASCII_CASE) != 0 &&
        ONIGENC_IS_MBC_ASCII(p)) ||
@@ -123,9 +123,9 @@ koi8_mbc_to_normalize(OnigAmbigType flag,
 }
 
 static int
-koi8_is_mbc_ambiguous(OnigAmbigType flag, UChar** pp, UChar* end)
+koi8_is_mbc_ambiguous(OnigAmbigType flag, const UChar** pp, const UChar* end)
 {
-  UChar* p = *pp;
+  UChar* p = (UChar *)*pp;
 
   (*pp)++;
   if (((flag & ONIGENC_AMBIGUOUS_MATCH_ASCII_CASE) != 0 &&