ICU-4707 Fix some compiler warnings

X-SVN-Rev: 19890
This commit is contained in:
George Rhoten 2006-07-25 05:31:24 +00:00
parent c92383f0a9
commit b1b20ec190
2 changed files with 1 additions and 3 deletions

View file

@ -2281,8 +2281,6 @@ void RBBIWordMonkey::setText(const UnicodeString &s) {
int32_t RBBIWordMonkey::next(int32_t prevPos) {
UErrorCode status = U_ZERO_ERROR;
int p0, p1, p2, p3; // Indices of the significant code points around the
// break position being tested. The candidate break
// location is before p2.

View file

@ -1045,7 +1045,7 @@ static void writeStringInU8(FILE *out, const UnicodeString &s) {
uint8_t bufForOneChar[10];
UBool isError = FALSE;
int32_t destIdx = 0;
U8_APPEND(bufForOneChar, destIdx, sizeof(bufForOneChar), c, isError);
U8_APPEND(bufForOneChar, destIdx, (int32_t)sizeof(bufForOneChar), c, isError);
fwrite(bufForOneChar, 1, destIdx, out);
}
}