mirror of
https://github.com/unicode-org/icu.git
synced 2025-04-06 05:55:35 +00:00
ICU-535 Fixed some compiler warnings
X-SVN-Rev: 3602
This commit is contained in:
parent
a69e1906a8
commit
22fae0356b
4 changed files with 4 additions and 4 deletions
|
@ -332,7 +332,7 @@ CalendarLimitTest::timeToFields(UDate theTime, int32_t* fields)
|
|||
|
||||
// Compute the Julian calendar day number for January 1, rawYear
|
||||
//double january1 = 365 * (rawYear - 1) + floorDivide(rawYear - 1, 4);
|
||||
double january1 = 365 * (rawYear - 1) + floorDivide(rawYear - 1, 4L);
|
||||
double january1 = 365 * (rawYear - 1) + floorDivide(rawYear - 1, ((int32_t)4));
|
||||
dayOfYear = (int32_t)uprv_fmod(julianEpochDay - january1, 365.0);
|
||||
|
||||
// Julian leap years occurred historically every 4 years starting
|
||||
|
|
|
@ -453,7 +453,7 @@ void NumberFormatTest::TestSecondaryGrouping(void) {
|
|||
CHECK(status, "createInstance(hi_IN)");
|
||||
|
||||
UnicodeString out;
|
||||
int32_t l = 1876543210L;
|
||||
int32_t l = (int32_t)1876543210L;
|
||||
g->format(l, out);
|
||||
delete g;
|
||||
// expect "1,87,65,43,210", but with Hindi digits
|
||||
|
|
|
@ -135,7 +135,7 @@ public:
|
|||
Formattable& result,
|
||||
ParsePosition& /* parsePosition */) const
|
||||
{
|
||||
result.setLong(0L);
|
||||
result.setLong((int32_t)0);
|
||||
}
|
||||
|
||||
virtual void parse( const UnicodeString& text,
|
||||
|
|
|
@ -134,7 +134,7 @@ RTTest::RTTest(const UnicodeString& transliteratorIDStr,
|
|||
this->transliteratorID = transliteratorIDStr;
|
||||
this->sourceScript = sourceScriptVal;
|
||||
this->targetScript = targetScriptVal;
|
||||
errorLimit = 0x7FFFFFFFL;
|
||||
errorLimit = (int32_t)0x7FFFFFFFL;
|
||||
errorCount = 0;
|
||||
pairLimit = 0x10000;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue