ICU-9139 compiler warning removed in rbbiscan.cpp

X-SVN-Rev: 31562
This commit is contained in:
Andy Heninger 2012-03-02 00:04:30 +00:00
parent 1c360497c7
commit 78b11e867d

View file

@ -2,7 +2,7 @@
//
// file: rbbiscan.cpp
//
// Copyright (C) 2002-2011, International Business Machines Corporation and others.
// Copyright (C) 2002-2012, International Business Machines Corporation and others.
// All Rights Reserved.
//
// This file contains the Rule Based Break Iterator Rule Builder functions for
@ -35,6 +35,7 @@
#include "uassert.h"
#define LENGTHOF(array) (int32_t)(sizeof(array)/sizeof((array)[0]))
//------------------------------------------------------------------------------
//
@ -992,7 +993,7 @@ void RBBIRuleScanner::parse() {
if (tableEl->fCharClass >= 128 && tableEl->fCharClass < 240 && // Table specs a char class &&
fC.fEscaped == FALSE && // char is not escaped &&
fC.fChar != (UChar32)-1) { // char is not EOF
U_ASSERT((tableEl->fCharClass-128) < sizeof(fRuleSets)/sizeof(fRuleSets[0]));
U_ASSERT((tableEl->fCharClass-128) < LENGTHOF(fRuleSets));
if (fRuleSets[tableEl->fCharClass-128].contains(fC.fChar)) {
// Table row specified a character class, or set of characters,
// and the current char matches it.