ICU-13816 Windows compiler warning fix.

X-SVN-Rev: 41504
This commit is contained in:
Andy Heninger 2018-06-04 21:04:14 +00:00
parent c0f9d2eeef
commit 2f534730c9
2 changed files with 4 additions and 2 deletions

View file

@ -385,7 +385,8 @@ UnicodeString Win32DateFormat::setTimeZoneInfo(TIME_ZONE_INFORMATION *tzi, const
for (int z = 0; z < ec; z += 1) {
UnicodeString equiv = TimeZone::getEquivalentID(icuid, z);
if (found = uprv_getWindowsTimeZoneInfo(tzi, equiv.getBuffer(), equiv.length())) {
found = uprv_getWindowsTimeZoneInfo(tzi, equiv.getBuffer(), equiv.length());
if (found) {
break;
}
}

View file

@ -88,7 +88,8 @@ void Win32DateTimeTest::testLocales(DateFormatTest *log)
for (int z = 0; z < ec; z += 1) {
UnicodeString equiv = TimeZone::getEquivalentID(zoneID, z);
if (found = uprv_getWindowsTimeZoneInfo(&tzi, equiv.getBuffer(), equiv.length())) {
found = uprv_getWindowsTimeZoneInfo(&tzi, equiv.getBuffer(), equiv.length());
if (found) {
break;
}
}