X-Git-Url: https://git.saurik.com/apple/icu.git/blobdiff_plain/b75a7d8f3b4adbae880cab104ce2c6a50eee4db2..fd0068a84e9996f225edba706498f6ed413d0673:/icuSources/test/cintltst/cg7coll.c?ds=sidebyside diff --git a/icuSources/test/cintltst/cg7coll.c b/icuSources/test/cintltst/cg7coll.c index d639ea79..a493450e 100644 --- a/icuSources/test/cintltst/cg7coll.c +++ b/icuSources/test/cintltst/cg7coll.c @@ -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);