]> granicus.if.org Git - php/commitdiff
- silent warnings
authorPierre Joye <pajoye@php.net>
Mon, 20 Jul 2009 09:44:52 +0000 (09:44 +0000)
committerPierre Joye <pajoye@php.net>
Mon, 20 Jul 2009 09:44:52 +0000 (09:44 +0000)
ext/unicode/property.c

index c7ecf3d9f9fb3b9b8180d1a16b2d26147aecc4c9..ddc32f08d772e134e0a349a84f374185b8f2c545 100644 (file)
@@ -321,7 +321,7 @@ PHP_FUNCTION(char_get_digit_value)
                        php_error(E_WARNING, "Radix has to be in 2-36 range");
                        return;
                }
-               RETURN_LONG(u_digit(ch, radix));
+               RETURN_LONG(u_digit(ch, (int8_t) radix));
        } else {
                RETURN_LONG(u_charDigitValue(ch));
        }
@@ -461,7 +461,7 @@ PHP_FUNCTION(char_from_digit)
                        return;
                }
        }
-       ch = u_forDigit(digit, radix);
+       ch = u_forDigit(digit, (int8_t) radix);
        
        if (ch == (UChar32)0) {
                RETURN_FALSE;