ICU-5192 Code review cleanup

X-SVN-Rev: 19606
This commit is contained in:
Deborah Goldsmith 2006-05-03 21:09:00 +00:00
parent 3a31ab328e
commit d6d4d2f647

View File

@ -2923,10 +2923,10 @@ uint32_t ucol_prv_getSpecialCE(const UCollator *coll, UChar ch, uint32_t CE, col
} }
// Skipping over leading zeroes. // Skipping over leading zeroes.
if (digVal != 0 || nonZeroValReached){ if (digVal != 0) {
if (digVal != 0 && !nonZeroValReached) nonZeroValReached = TRUE;
nonZeroValReached = TRUE; }
if (nonZeroValReached) {
/* /*
We parse the digit string into base 100 numbers (this fits into a byte). We parse the digit string into base 100 numbers (this fits into a byte).
We only add to the buffer in twos, thus if we are parsing an odd character, We only add to the buffer in twos, thus if we are parsing an odd character,