ICU-89 fixed return of -1 to be cast to UChar.

X-SVN-Rev: 2076
This commit is contained in:
Yves Arrouye 2000-07-31 18:44:56 +00:00
parent 7bba28ace0
commit b386934919

View File

@ -221,7 +221,7 @@ static UChar parseInt(const UnicodeString& s, int32_t pos) {
while (pos < limit) { while (pos < limit) {
int8_t digit = Unicode::digit(s.charAt(pos++), 16); int8_t digit = Unicode::digit(s.charAt(pos++), 16);
if (digit < 0) { if (digit < 0) {
return -1; // Bogus hex digit -- shouldn't happen return (UChar) -1; // Bogus hex digit -- shouldn't happen
} }
value = (value << 4) | digit; value = (value << 4) | digit;
} }