X-Git-Url: https://git.saurik.com/apple/icu.git/blobdiff_plain/51004dcb01e06fef634b61be77ed73dd61cb6db9..ef6cf650f4a75c3f97de06b51fa104f2069b9ea2:/icuSources/test/perf/collperf/collperf.cpp diff --git a/icuSources/test/perf/collperf/collperf.cpp b/icuSources/test/perf/collperf/collperf.cpp index 5fda2fcc..841c59bc 100644 --- a/icuSources/test/perf/collperf/collperf.cpp +++ b/icuSources/test/perf/collperf/collperf.cpp @@ -1,6 +1,6 @@ /******************************************************************** * COPYRIGHT: -* Copyright (C) 2001-2012 IBM, Inc. All Rights Reserved. +* Copyright (C) 2001-2016 IBM, Inc. All Rights Reserved. * ********************************************************************/ @@ -9,6 +9,7 @@ #include #include #include +#include "cmemory.h" #include "unicode/uperf.h" #include "uoptions.h" #include "unicode/coll.h" @@ -572,7 +573,7 @@ public: UOPTION_DEF("c_normal", 'n', UOPT_NO_ARG), // --normal UOPTION_DEF("c_strength", 's', UOPT_REQUIRES_ARG), // --strength <1-5> }; - int32_t opt_len = (sizeof(options)/sizeof(options[0])); + int32_t opt_len = UPRV_LENGTHOF(options); enum {i, r,f,a,c,l,n,s}; // The buffer between the option items' order and their references _remainingArgc = u_parseArgs(_remainingArgc, (char**)argv, opt_len, options);