Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(2459)

Unified Diff: source/test/intltest/regcoll.cpp

Issue 286430043: ticket:12012: Replace irregular sizeof expressions with UPRV_LENGTHOF(). (Closed) Base URL: svn+ssh://source.icu-project.org/repos/icu/icu/trunk
Patch Set: Created 9 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Please Sign in to add in-line comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « source/test/intltest/numfmtst.cpp ('k') | source/test/intltest/transrt.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: source/test/intltest/regcoll.cpp
diff --git a/source/test/intltest/regcoll.cpp b/source/test/intltest/regcoll.cpp
index 7a322447aabec887a462047e89e7324e89caf0dd..dc1026deaf67489b46107e38c0e6f4bc73a2e0bb 100644
--- a/source/test/intltest/regcoll.cpp
+++ b/source/test/intltest/regcoll.cpp
@@ -1225,7 +1225,7 @@ void CollationRegressionTest::TestT7189() {
return;
}
- for (i = 0; i < sizeof(text1) / (CollationRegressionTest::MAX_TOKEN_LEN * sizeof(UChar)); i++) {
+ for (i = 0; i < UPRV_LENGTHOF(text1); i++) {
uint8_t key1[100], key2[100];
int32_t len1, len2;
« no previous file with comments | « source/test/intltest/numfmtst.cpp ('k') | source/test/intltest/transrt.cpp » ('j') | no next file with comments »

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b