X-Git-Url: https://git.saurik.com/apple/icu.git/blobdiff_plain/374ca955a76ecab1204ca8bfa63ff9238d998416..b25be06635768807f8f693286fa73bb2297bb06c:/icuSources/layout/ClassDefinitionTables.cpp diff --git a/icuSources/layout/ClassDefinitionTables.cpp b/icuSources/layout/ClassDefinitionTables.cpp index d69aac0e..471a2b3e 100644 --- a/icuSources/layout/ClassDefinitionTables.cpp +++ b/icuSources/layout/ClassDefinitionTables.cpp @@ -1,6 +1,6 @@ /* * - * (C) Copyright IBM Corp. 1998-2004 - All Rights Reserved + * (C) Copyright IBM Corp. 1998-2010 - All Rights Reserved * */ @@ -68,7 +68,7 @@ le_int32 ClassDefFormat1Table::getGlyphClass(LEGlyphID glyphID) const TTGlyphID firstGlyph = SWAPW(startGlyph); TTGlyphID lastGlyph = firstGlyph + SWAPW(glyphCount); - if (ttGlyphID > firstGlyph && ttGlyphID < lastGlyph) { + if (ttGlyphID >= firstGlyph && ttGlyphID < lastGlyph) { return SWAPW(classValueArray[ttGlyphID - firstGlyph]); }