Skip to content

Commit bc02d7b

Browse files
committed
ICU-23054 Add missing typecasts.
1 parent 204d6d1 commit bc02d7b

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

icu4c/source/test/cintltst/cloctst.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2564,7 +2564,7 @@ static void TestCanonicalizationBuffer(void)
25642564
return;
25652565
}
25662566

2567-
if (reslen != len) {
2567+
if (reslen != (int32_t)len) {
25682568
log_err("FAIL: uloc_canonicalize(%s) => \"%i\", expected \"%u\"\n",
25692569
name, reslen, len);
25702570
return;

icu4c/source/tools/makeconv/gencnvex.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -502,7 +502,7 @@ generateToUTable(CnvExtData *extData, UCMTable *table,
502502
subLimit=UCNV_EXT_TO_U_GET_VALUE(section[0]);
503503
for(j=0; j<count; ++j) {
504504
subStart=subLimit;
505-
subLimit= (j+1)<count ? UCNV_EXT_TO_U_GET_VALUE(section[j+1]) : limit;
505+
subLimit= (j+1)<count ? (int32_t)UCNV_EXT_TO_U_GET_VALUE(section[j+1]) : limit;
506506

507507
/* remove the subStart temporary value */
508508
section[j]&=~UCNV_EXT_TO_U_VALUE_MASK;

0 commit comments

Comments
 (0)