ICU-6176 Fix some Coverity warnings.
X-SVN-Rev: 23435
This commit is contained in:
parent
57faac963c
commit
b579ec4770
@ -1,7 +1,7 @@
|
|||||||
/*
|
/*
|
||||||
*******************************************************************************
|
*******************************************************************************
|
||||||
*
|
*
|
||||||
* Copyright (C) 1999-2006, International Business Machines
|
* Copyright (C) 1999-2008, International Business Machines
|
||||||
* Corporation and others. All Rights Reserved.
|
* Corporation and others. All Rights Reserved.
|
||||||
*
|
*
|
||||||
*******************************************************************************
|
*******************************************************************************
|
||||||
@ -521,11 +521,18 @@ processCombining() {
|
|||||||
|
|
||||||
/* store the combining data for this lead code point in the combiningTable */
|
/* store the combining data for this lead code point in the combiningTable */
|
||||||
while(j<count && i==triples[j].leadIndex) {
|
while(j<count && i==triples[j].leadIndex) {
|
||||||
|
Norm *normPtr;
|
||||||
finalIndex=combiningIndexes[triples[j].trailIndex];
|
finalIndex=combiningIndexes[triples[j].trailIndex];
|
||||||
combined=triples[j++].combined;
|
combined=triples[j++].combined;
|
||||||
|
normPtr = getNorm(combined);
|
||||||
|
|
||||||
|
if (normPtr == NULL) {
|
||||||
|
fprintf(stderr, "error: processCombining did not get expected result. combined=%d\n", combined);
|
||||||
|
exit(U_INTERNAL_PROGRAM_ERROR);
|
||||||
|
}
|
||||||
|
|
||||||
/* is combined a starter? (i.e., cc==0 && combines forward) */
|
/* is combined a starter? (i.e., cc==0 && combines forward) */
|
||||||
combinesFwd=(uint16_t)((getNorm(combined)->combiningFlags&1)<<13);
|
combinesFwd=(uint16_t)((normPtr->combiningFlags&1)<<13);
|
||||||
|
|
||||||
*p++=finalIndex;
|
*p++=finalIndex;
|
||||||
if(combined<=0x1fff) {
|
if(combined<=0x1fff) {
|
||||||
|
Loading…
Reference in New Issue
Block a user