Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(8)

Unified Diff: source/test/perf/unisetperf/draft/bitset.cpp

Issue 845603002: Update ICU to 54.1 step 1 (Closed) Base URL: https://chromium.googlesource.com/chromium/deps/icu.git@master
Patch Set: remove unusued directories Created 5 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « source/test/perf/perldriver/PerfFramework.pm ('k') | source/test/perf/unisetperf/draft/contperf.bat » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: source/test/perf/unisetperf/draft/bitset.cpp
diff --git a/source/test/perf/unisetperf/draft/bitset.cpp b/source/test/perf/unisetperf/draft/bitset.cpp
index 487d0c0985ff903bbe20ed3027eb21e6303c5272..d4d3f3f9830b0bc9233c456b1dded55aa7c38144 100644
--- a/source/test/perf/unisetperf/draft/bitset.cpp
+++ b/source/test/perf/unisetperf/draft/bitset.cpp
@@ -1,6 +1,6 @@
/*
**********************************************************************
-* Copyright (C) 2007, International Business Machines
+* Copyright (C) 2014, International Business Machines
* Corporation and others. All Rights Reserved.
**********************************************************************
* file name: bitset.cpp
@@ -20,6 +20,7 @@
#include "unicode/utypes.h"
#include "unicont.h"
+#include "cmemory.h" // for UPRV_LENGTHOF
/*
* Hash table for up to 1k 64-bit words, for 1 bit per BMP code point.
@@ -146,7 +147,7 @@ public:
prevIndex=j;
}
- if(bitHash->countKeys()>LENGTHOF(shortBits)) {
+ if(bitHash->countKeys()>UPRV_LENGTHOF(shortBits)) {
bits=(int64_t *)uprv_malloc(bitHash->countKeys()*8);
}
if(bits!=NULL) {
« no previous file with comments | « source/test/perf/perldriver/PerfFramework.pm ('k') | source/test/perf/unisetperf/draft/contperf.bat » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698