ICU-5410 Improve code coverage through refactorization

X-SVN-Rev: 20667
This commit is contained in:
George Rhoten 2006-11-15 23:21:25 +00:00
parent 1d283c8c87
commit 6ea0cd2f7d

View File

@ -469,11 +469,10 @@ static ContractionTable *_cnttab_getContractionTable(CntTable *table, uint32_t e
element &= 0xFFFFFF;
ContractionTable *tbl = NULL;
if((element == 0xFFFFFF) || (tbl = table->elements[element]) == NULL) {
return NULL;
} else {
return tbl;
if(element != 0xFFFFFF) {
tbl = table->elements[element]; /* This could also return NULL */
}
return tbl;
}
static int32_t _cnttab_findCP(ContractionTable *tbl, UChar codePoint) {