mirror of
https://github.com/php/php-src.git
synced 2025-08-20 17:34:35 +02:00
- silent warnings
This commit is contained in:
parent
36699da416
commit
ca6c093d12
1 changed files with 2 additions and 2 deletions
|
@ -321,7 +321,7 @@ PHP_FUNCTION(char_get_digit_value)
|
||||||
php_error(E_WARNING, "Radix has to be in 2-36 range");
|
php_error(E_WARNING, "Radix has to be in 2-36 range");
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
RETURN_LONG(u_digit(ch, radix));
|
RETURN_LONG(u_digit(ch, (int8_t) radix));
|
||||||
} else {
|
} else {
|
||||||
RETURN_LONG(u_charDigitValue(ch));
|
RETURN_LONG(u_charDigitValue(ch));
|
||||||
}
|
}
|
||||||
|
@ -461,7 +461,7 @@ PHP_FUNCTION(char_from_digit)
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
ch = u_forDigit(digit, radix);
|
ch = u_forDigit(digit, (int8_t) radix);
|
||||||
|
|
||||||
if (ch == (UChar32)0) {
|
if (ch == (UChar32)0) {
|
||||||
RETURN_FALSE;
|
RETURN_FALSE;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue