]> git.saurik.com Git - apple/icu.git/blobdiff - icuSources/test/cintltst/unumberformattertst.c
ICU-66108.tar.gz
[apple/icu.git] / icuSources / test / cintltst / unumberformattertst.c
index b45065000984fd215c1722a620f4b5274c895cbd..2e296f033f901dea2c5bc810117ee627320264b8 100644 (file)
@@ -96,7 +96,7 @@ static void TestSkeletonFormatToFields() {
     if (assertSuccessCheck("unumf_formatInt() failed", &ec, TRUE)) {
 
         // field position test:
-        UFieldPosition ufpos = {UNUM_DECIMAL_SEPARATOR_FIELD};
+        UFieldPosition ufpos = {UNUM_DECIMAL_SEPARATOR_FIELD, 0, 0};
         unumf_resultNextFieldPosition(uresult, &ufpos, &ec);
         assertIntEquals("Field position should be correct", 14, ufpos.beginIndex);
         assertIntEquals("Field position should be correct", 15, ufpos.endIndex);
@@ -118,7 +118,7 @@ static void TestSkeletonFormatToFields() {
                 {UNUM_MEASURE_UNIT_FIELD, 18, 19}
             };
             UFieldPosition actual;
-            for (int32_t i = 0; i < sizeof(expectedFields) / sizeof(*expectedFields); i++) {
+            for (int32_t i = 0; i < (int32_t)(sizeof(expectedFields) / sizeof(*expectedFields)); i++) {
                 // Iterate using the UFieldPosition to hold state...
                 UFieldPosition expected = expectedFields[i];
                 actual.field = ufieldpositer_next(ufpositer, &actual.beginIndex, &actual.endIndex);