summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPierre Joye <pajoye@php.net>2009-07-20 09:44:52 +0000
committerPierre Joye <pajoye@php.net>2009-07-20 09:44:52 +0000
commitca6c093d123ae236032c56d9827d3266e4e9cf5c (patch)
tree6910ab8e11f956e0c355b2031b28b164bcfbe014
parent36699da4167d696cdc8cf020c6bfa1a1b2ea5dd5 (diff)
downloadphp-git-ca6c093d123ae236032c56d9827d3266e4e9cf5c.tar.gz
- silent warnings
-rw-r--r--ext/unicode/property.c4
1 files changed, 2 insertions, 2 deletions
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;