From: Pierre Joye Date: Mon, 20 Jul 2009 09:44:52 +0000 (+0000) Subject: - silent warnings X-Git-Tag: php-5.4.0alpha1~191^2~3038 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=ca6c093d123ae236032c56d9827d3266e4e9cf5c;p=php - silent warnings --- diff --git a/ext/unicode/property.c b/ext/unicode/property.c index c7ecf3d9f9..ddc32f08d7 100644 --- a/ext/unicode/property.c +++ b/ext/unicode/property.c @@ -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;