From 60cc29e0e40c22be3f71d4bfeeed908d9e517ad3 Mon Sep 17 00:00:00 2001 From: Markus Scherer Date: Thu, 13 Nov 2003 17:04:10 +0000 Subject: [PATCH] ICU-3346 proper cast to eliminate warning X-SVN-Rev: 13714 --- icu4c/source/common/ucnvmbcs.c | 2 +- icu4c/source/tools/toolutil/ucmstate.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/icu4c/source/common/ucnvmbcs.c b/icu4c/source/common/ucnvmbcs.c index 49e2f89d48..703f898fee 100644 --- a/icu4c/source/common/ucnvmbcs.c +++ b/icu4c/source/common/ucnvmbcs.c @@ -970,7 +970,7 @@ _MBCSLoad(UConverterSharedData *sharedData, MBCS_ENTRY_FINAL_ACTION(entry)==MBCS_STATE_CHANGE_ONLY && MBCS_ENTRY_FINAL_STATE(entry)!=0 ) { - mbcsTable->dbcsOnlyState=MBCS_ENTRY_FINAL_STATE(entry); + mbcsTable->dbcsOnlyState=(uint8_t)MBCS_ENTRY_FINAL_STATE(entry); mbcsTable->outputType=MBCS_OUTPUT_DBCS_ONLY; } diff --git a/icu4c/source/tools/toolutil/ucmstate.c b/icu4c/source/tools/toolutil/ucmstate.c index ccc43a6f8b..34bff44ea7 100644 --- a/icu4c/source/tools/toolutil/ucmstate.c +++ b/icu4c/source/tools/toolutil/ucmstate.c @@ -276,7 +276,7 @@ ucm_parseHeaderLine(UCMFile *ucm, c=**pValue; if('1'<=c && c<='4' && (*pValue)[1]==0) { states->maxCharLength=(int8_t)(c-'0'); - states->outputType=states->maxCharLength-1; + states->outputType=(int8_t)(states->maxCharLength-1); } else { fprintf(stderr, "ucm error: illegal %s\n", *pValue); exit(U_INVALID_TABLE_FORMAT);