ICU-13823 Mreged #13816 ICU4C Windows build issue fix (r41504) to maint-62 for 62.1 GA.

X-SVN-Rev: 41532
This commit is contained in:
Yoshito Umaoka 2018-06-15 23:03:33 +00:00
parent 62395ea147
commit 9be9ef04ad
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;
}
}