X-Git-Url: https://git.saurik.com/apple/icu.git/blobdiff_plain/b331163bffd790ced0e88b73f44f86d49ccc48a5..ef6cf650f4a75c3f97de06b51fa104f2069b9ea2:/icuSources/common/usc_impl.c diff --git a/icuSources/common/usc_impl.c b/icuSources/common/usc_impl.c index e30c7f5a..17692693 100644 --- a/icuSources/common/usc_impl.c +++ b/icuSources/common/usc_impl.c @@ -1,6 +1,6 @@ /* ********************************************************************** -* Copyright (C) 1999-2014, International Business Machines +* Copyright (C) 1999-2016, International Business Machines * Corporation and others. All Rights Reserved. ********************************************************************** * @@ -17,8 +17,6 @@ #include "usc_impl.h" #include "cmemory.h" -#define ARRAY_SIZE(array) (sizeof array / sizeof array[0]) - #define PAREN_STACK_DEPTH 32 #define MOD(sp) ((sp) % PAREN_STACK_DEPTH) @@ -156,7 +154,7 @@ highBit(int32_t value) static int32_t getPairIndex(UChar32 ch) { - int32_t pairedCharCount = ARRAY_SIZE(pairedChars); + int32_t pairedCharCount = UPRV_LENGTHOF(pairedChars); int32_t pairedCharPower = 1 << highBit(pairedCharCount); int32_t pairedCharExtra = pairedCharCount - pairedCharPower;