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

Unified Diff: source/common/ucharstriebuilder.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/ucharstrie.cpp ('k') | source/common/ucharstrieiterator.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: source/common/ucharstriebuilder.cpp
diff --git a/source/common/ucharstriebuilder.cpp b/source/common/ucharstriebuilder.cpp
index 05255b48c9b3c88323defb5fa0ee45c9ad6ef25b..412a58a45d6bd0f58b4b5b990943bc1ccf2c0a5d 100644
--- a/source/common/ucharstriebuilder.cpp
+++ b/source/common/ucharstriebuilder.cpp
@@ -1,3 +1,5 @@
+// Copyright (C) 2016 and later: Unicode, Inc. and others.
+// License & terms of use: http://www.unicode.org/copyright.html
/*
*******************************************************************************
* Copyright (C) 2010-2012, International Business Machines
@@ -115,7 +117,7 @@ UCharsTrieBuilder::add(const UnicodeString &s, int32_t value, UErrorCode &errorC
return *this;
}
if(elementsLength>0) {
- uprv_memcpy(newElements, elements, elementsLength*sizeof(UCharsTrieElement));
+ uprv_memcpy(newElements, elements, (size_t)elementsLength*sizeof(UCharsTrieElement));
}
delete[] elements;
elements=newElements;
« no previous file with comments | « source/common/ucharstrie.cpp ('k') | source/common/ucharstrieiterator.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698