]> git.saurik.com Git - apple/icu.git/blobdiff - icuSources/i18n/rbt_rule.cpp
ICU-62141.0.1.tar.gz
[apple/icu.git] / icuSources / i18n / rbt_rule.cpp
index b21e37c9cea951ce98592da3dbe102c53889a148..3569e42fa4f137f903264dc11428b17ba5a52a70 100644 (file)
@@ -1,3 +1,5 @@
+// © 2016 and later: Unicode, Inc. and others.
+// License & terms of use: http://www.unicode.org/copyright.html
 /*
  **********************************************************************
  *   Copyright (C) 1999-2011, International Business Machines
@@ -174,7 +176,7 @@ TransliterationRule::TransliterationRule(TransliterationRule& other) :
     segmentsCount = 0;
     if (other.segmentsCount > 0) {
         segments = (UnicodeFunctor **)uprv_malloc(other.segmentsCount * sizeof(UnicodeFunctor *));
-        uprv_memcpy(segments, other.segments, other.segmentsCount*sizeof(segments[0]));
+        uprv_memcpy(segments, other.segments, (size_t)other.segmentsCount*sizeof(segments[0]));
     }
 
     if (other.anteContext != NULL) {