X-Git-Url: https://git.saurik.com/apple/icu.git/blobdiff_plain/08b89b0a244153b9f5bbb2f49c55ab0f7298122e..b331163bffd790ced0e88b73f44f86d49ccc48a5:/icuSources/common/ushape.cpp diff --git a/icuSources/common/ushape.cpp b/icuSources/common/ushape.cpp index 1799b63e..eeae57f3 100644 --- a/icuSources/common/ushape.cpp +++ b/icuSources/common/ushape.cpp @@ -26,8 +26,6 @@ #include "ubidi_props.h" #include "uassert.h" -#define LENGTHOF(array) (int32_t)(sizeof(array)/sizeof((array)[0])) - /* * This implementation is designed for 16-bit Unicode strings. * The main assumption is that the Arabic characters and their @@ -1560,8 +1558,8 @@ u_shapeArabic(const UChar *source, int32_t sourceLength, } /* Start of Arabic letter shaping part */ - if(outputSize<=LENGTHOF(buffer)) { - outputSize=LENGTHOF(buffer); + if(outputSize<=UPRV_LENGTHOF(buffer)) { + outputSize=UPRV_LENGTHOF(buffer); tempbuffer=buffer; } else { tempbuffer = (UChar *)uprv_malloc(outputSize*U_SIZEOF_UCHAR);