mirror of
https://github.com/unicode-org/icu.git
synced 2025-04-08 06:53:45 +00:00
ICU-3500 Fix some compiler warnings
X-SVN-Rev: 15401
This commit is contained in:
parent
bbc7043dbf
commit
f2bca97241
3 changed files with 8 additions and 9 deletions
|
@ -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 {
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
|
|
@ -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");
|
||||
|
|
Loading…
Add table
Reference in a new issue