]> git.saurik.com Git - apple/icu.git/blobdiff - icuSources/test/cintltst/cg7coll.c
ICU-8.11.4.tar.gz
[apple/icu.git] / icuSources / test / cintltst / cg7coll.c
index d639ea79f698afd347c4ff501a870d194beb314c..a493450ee6c6dca0e9e797a9f7e1b539b41a945f 100644 (file)
@@ -189,7 +189,7 @@ static void TestDemo1()
     UCollator *myCollation;
     int32_t j, n;
     const char *rules = "& Z < p, P";
-    int32_t len=strlen(rules);
+    int32_t len=(int32_t)strlen(rules);
     UChar *temp = (UChar*)malloc(sizeof(UChar) * (len+1));
     UErrorCode status = U_ZERO_ERROR;
     u_uastrcpy(temp, rules);
@@ -221,7 +221,7 @@ static void TestDemo2()
     UCollator *myCollation;
     int32_t j, n;
     const char *rules = "& C < ch , cH, Ch, CH";
-    int32_t len=strlen(rules);
+    int32_t len=(int32_t)strlen(rules);
     UChar *temp = (UChar*)malloc(sizeof(UChar) * (len+1));
     UErrorCode status = U_ZERO_ERROR;
     u_uastrcpy(temp, rules);
@@ -251,7 +251,7 @@ static void TestDemo3()
     UCollator *myCollation;
     int32_t j, n;
     const char *rules = "& Question'-'mark ; '?' & Hash'-'mark ; '#' & Ampersand ; '&'";
-    int32_t len=strlen(rules);
+    int32_t len=(int32_t)strlen(rules);
     UChar *temp = (UChar*)malloc(sizeof(UChar) * (len+1));
     UErrorCode status = U_ZERO_ERROR;
     u_uastrcpy(temp, rules);
@@ -282,7 +282,7 @@ static void TestDemo4()
     UCollator *myCollation;
     int32_t j, n;
     const char *rules = " & aa ; a'-' & ee ; e'-' & ii ; i'-' & oo ; o'-' & uu ; u'-' ";
-    int32_t len=strlen(rules);
+    int32_t len=(int32_t)strlen(rules);
     UChar *temp = (UChar*)malloc(sizeof(UChar) * (len+1));
     UErrorCode status = U_ZERO_ERROR;
     u_uastrcpy(temp, rules);