mirror of
https://github.com/unicode-org/icu.git
synced 2025-04-10 07:39:16 +00:00
ICU-9139 compiler warning removed in rbbiscan.cpp
X-SVN-Rev: 31562
This commit is contained in:
parent
1c360497c7
commit
78b11e867d
1 changed files with 3 additions and 2 deletions
|
@ -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.
|
||||
|
|
Loading…
Add table
Reference in a new issue