ICU-89 fixed return of -1 to be cast to UChar.
X-SVN-Rev: 2076
This commit is contained in:
parent
7bba28ace0
commit
b386934919
@ -221,7 +221,7 @@ static UChar parseInt(const UnicodeString& s, int32_t pos) {
|
||||
while (pos < limit) {
|
||||
int8_t digit = Unicode::digit(s.charAt(pos++), 16);
|
||||
if (digit < 0) {
|
||||
return -1; // Bogus hex digit -- shouldn't happen
|
||||
return (UChar) -1; // Bogus hex digit -- shouldn't happen
|
||||
}
|
||||
value = (value << 4) | digit;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user