ICU-3346 proper cast to eliminate warning
X-SVN-Rev: 13714
This commit is contained in:
parent
8394462286
commit
60cc29e0e4
@ -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;
|
||||
}
|
||||
|
@ -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 <mb_cur_max> %s\n", *pValue);
|
||||
exit(U_INVALID_TABLE_FORMAT);
|
||||
|
Loading…
Reference in New Issue
Block a user