mirror of
https://github.com/unicode-org/icu.git
synced 2025-04-14 09:21:03 +00:00
ICU-4338 explicitly declare the size of per-script arrays.
X-SVN-Rev: 19372
This commit is contained in:
parent
28804eff03
commit
27ce7a467e
2 changed files with 5 additions and 4 deletions
|
@ -1,6 +1,6 @@
|
|||
/*
|
||||
*
|
||||
* (C) Copyright IBM Corp. 1998-2005 - All Rights Reserved
|
||||
* (C) Copyright IBM Corp. 1998-2006 - All Rights Reserved
|
||||
*
|
||||
*/
|
||||
|
||||
|
@ -261,7 +261,7 @@ static const IndicClassTable sinhClassTable = {0x0D80, 0x0DF4, 3, SINH_SCRIPT_FL
|
|||
//
|
||||
// IndicClassTable addresses
|
||||
//
|
||||
static const IndicClassTable * const indicClassTables[] = {
|
||||
static const IndicClassTable * const indicClassTables[scriptCodeCount] = {
|
||||
NULL, /* 'zyyy' (COMMON) */
|
||||
NULL, /* 'qaai' (INHERITED) */
|
||||
NULL, /* 'arab' (ARABIC) */
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
/*
|
||||
**********************************************************************
|
||||
* Copyright (C) 2002-2005, International Business Machines
|
||||
* Copyright (C) 2002-2006, International Business Machines
|
||||
* Corporation and others. All Rights Reserved.
|
||||
**********************************************************************
|
||||
*/
|
||||
|
@ -10,6 +10,7 @@
|
|||
* BreakIterator...
|
||||
*/
|
||||
#include "layout/LETypes.h"
|
||||
#include "layout/LEScripts.h"
|
||||
#include "layout/LELanguages.h"
|
||||
#include "layout/LayoutEngine.h"
|
||||
#include "layout/LEFontInstance.h"
|
||||
|
@ -131,7 +132,7 @@ le_int32 StyleRuns::getRuns(le_int32 runLimits[], le_int32 styleIndices[])
|
|||
* process, rather for all scripts which require
|
||||
* complex processing for correct rendering.
|
||||
*/
|
||||
static const le_bool complexTable[] = {
|
||||
static const le_bool complexTable[scriptCodeCount] = {
|
||||
FALSE , /* Zyyy */
|
||||
FALSE, /* Qaai */
|
||||
TRUE, /* Arab */
|
||||
|
|
Loading…
Add table
Reference in a new issue