]> granicus.if.org Git - icu/commitdiff
ICU-21803 Fix Windows build break on MSYS2 with GCC 11
authorJeff Genovy <29107334+jefgen@users.noreply.github.com>
Thu, 21 Oct 2021 19:02:08 +0000 (12:02 -0700)
committerJeff Genovy <29107334+jefgen@users.noreply.github.com>
Thu, 21 Oct 2021 21:18:04 +0000 (14:18 -0700)
icu4c/source/test/intltest/windttst.cpp
icu4c/source/test/intltest/winnmtst.cpp

index 92d6f6721e765e4a634b299a8d21de51ea9f7a66..9fec23aca4bdf2d15c77fa622b4c112139848175 100644 (file)
@@ -156,7 +156,7 @@ void Win32DateTimeTest::testLocales(DateFormatTest *log)
         wdLength = GetDateFormatW(lcidRecords[i].lcid, DATE_LONGDATE, &winNow, NULL, wdBuffer, UPRV_LENGTHOF(wdBuffer));
         wtLength = GetTimeFormatW(lcidRecords[i].lcid, 0, &winNow, NULL, wtBuffer, UPRV_LENGTHOF(wtBuffer));
 
-        if (uprv_strchr(localeID, '@') > 0) {
+        if (uprv_strchr(localeID, '@')) {
             uprv_strcat(localeID, ";");
         } else {
             uprv_strcat(localeID, "@");
index 84fc278c129736d3aedb4a8b0367aa02d450df26..953fb5d2c38af4baf5290e1765e67f96e93bdc43 100644 (file)
@@ -303,7 +303,7 @@ void Win32NumberTest::testLocales(NumberFormatTest *log)
 
         strcpy(localeID, lcidRecords[i].localeID);
 
-        if (strchr(localeID, '@') > 0) {
+        if (strchr(localeID, '@')) {
             strcat(localeID, ";");
         } else {
             strcat(localeID, "@");