ICU-3500 Fix some compiler warnings

X-SVN-Rev: 15401
This commit is contained in:
George Rhoten 2004-05-19 06:18:41 +00:00
parent bbc7043dbf
commit f2bca97241
3 changed files with 8 additions and 9 deletions

View file

@ -58,12 +58,12 @@ class TextFile {
UBool ensureCapacity(int32_t capacity);
UBool setBuffer(int32_t index, char c, UErrorCode& ec);
FileStream* file;
char* name;
char* encoding;
int32_t lineNo;
char* buffer;
int32_t capacity;
FileStream* file;
int32_t lineNo;
};
inline int32_t TextFile::getLineNumber() const {

View file

@ -3359,9 +3359,9 @@ void TransliteratorTest::TestSpecialCases(void) {
char* Char32ToEscapedChars(UChar32 ch, char* buffer) {
if (ch <= 0xFFFF) {
sprintf(buffer, "\\u%04x", ch);
sprintf(buffer, "\\u%04x", (int)ch);
} else {
sprintf(buffer, "\\u%08x", ch);
sprintf(buffer, "\\U%08x", (int)ch);
}
return buffer;
}

View file

@ -417,11 +417,10 @@ PUtilTest::NaNGT(void)
void
PUtilTest::NaNLT(void)
{
double pinf = uprv_getInfinity();
double ninf = -uprv_getInfinity();
double nan = uprv_getNaN();
double ten = 10.0;
int numErrors = 0;
double pinf = uprv_getInfinity();
double ninf = -uprv_getInfinity();
double nan = uprv_getNaN();
double ten = 10.0;
if(nan < nan != FALSE) {
logln("WARNING: NaN < NaN returned TRUE, should be FALSE");