]> git.saurik.com Git - apple/icu.git/blobdiff - icuSources/test/perf/howExpensiveIs/howExpensiveIs.cpp
ICU-57132.0.1.tar.gz
[apple/icu.git] / icuSources / test / perf / howExpensiveIs / howExpensiveIs.cpp
index be59fc301088f4cf51f7669249f37e8aa066b462..0e5d3a8a75046e828b32ba180a814dc3a0daa1e7 100644 (file)
@@ -1,12 +1,13 @@
 /*
  **********************************************************************
- * Copyright (c) 2011-2014,International Business Machines
+ * Copyright (c) 2011-2016,International Business Machines
  * Corporation and others.  All Rights Reserved.
  **********************************************************************
  */
 #include <stdio.h>
 #include <string.h>
 
+#include "cmemory.h"
 #include "sieve.h"
 #include "unicode/utimer.h"
 #include "udbgutil.h"
@@ -698,7 +699,7 @@ QuickTest(NumParseTestbeng,{    static UChar pattern[] = { 0x23 };    NumParseTe
 UDateFormat *DateFormatTest_fmt = NULL;
 UDate sometime = 100000000.0;
 UChar onekbuf[1024];
-const int32_t onekbuf_len = sizeof(onekbuf)/sizeof(onekbuf[0]);
+const int32_t onekbuf_len = UPRV_LENGTHOF(onekbuf);
 
 
 QuickTest(DateFormatTestBasic, \