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

Unified Diff: source/common/usprep.cpp

Issue 2440913002: Update ICU to 58.1
Patch Set: Created 4 years, 2 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/common/ushape.cpp ('k') | source/common/ustack.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: source/common/usprep.cpp
diff --git a/source/common/usprep.cpp b/source/common/usprep.cpp
index c1bd514065d1aa65a6c87de2bfdd464a8b997136..565d9e55160e2e3303f2a9bbe0110fb03bd32243 100644
--- a/source/common/usprep.cpp
+++ b/source/common/usprep.cpp
@@ -1,7 +1,9 @@
+// Copyright (C) 2016 and later: Unicode, Inc. and others.
+// License & terms of use: http://www.unicode.org/copyright.html
/*
*******************************************************************************
*
- * Copyright (C) 2003-2014, International Business Machines
+ * Copyright (C) 2003-2016, International Business Machines
* Corporation and others. All Rights Reserved.
*
*******************************************************************************
@@ -409,7 +411,7 @@ usprep_openByType(UStringPrepProfileType type,
return NULL;
}
int32_t index = (int32_t)type;
- if (index < 0 || index >= (int32_t)(sizeof(PROFILE_NAMES)/sizeof(PROFILE_NAMES[0]))) {
+ if (index < 0 || index >= UPRV_LENGTHOF(PROFILE_NAMES)) {
*status = U_ILLEGAL_ARGUMENT_ERROR;
return NULL;
}
« no previous file with comments | « source/common/ushape.cpp ('k') | source/common/ustack.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698