X-Git-Url: https://git.saurik.com/apple/icu.git/blobdiff_plain/08b89b0a244153b9f5bbb2f49c55ab0f7298122e..b331163bffd790ced0e88b73f44f86d49ccc48a5:/icuSources/common/utrie2_builder.cpp diff --git a/icuSources/common/utrie2_builder.cpp b/icuSources/common/utrie2_builder.cpp index f195453d..0815822c 100644 --- a/icuSources/common/utrie2_builder.cpp +++ b/icuSources/common/utrie2_builder.cpp @@ -33,8 +33,6 @@ #include "utrie.h" /* for utrie2_fromUTrie() and utrie_swap() */ -#define LENGTHOF(array) (int32_t)(sizeof(array)/sizeof((array)[0])) - /* Implementation notes ----------------------------------------------------- */ /* @@ -476,7 +474,7 @@ allocIndex2Block(UNewTrie2 *trie) { newBlock=trie->index2Length; newTop=newBlock+UTRIE2_INDEX_2_BLOCK_LENGTH; - if(newTop>LENGTHOF(trie->index2)) { + if(newTop>UPRV_LENGTHOF(trie->index2)) { /* * Should never occur. * Either UTRIE2_MAX_BUILD_TIME_INDEX_LENGTH is incorrect,