Kaydet (Commit) acd62e05 authored tarafından Stephan Bergmann's avatar Stephan Bergmann

external/icu: workaround -fsanitize=signed-integer-overflow warnings

Change-Id: I7d8e3be80f04ec0a9d1dbd394ac0e2ab2f1a4551
üst 431d2e3a
...@@ -127,6 +127,17 @@ ...@@ -127,6 +127,17 @@
length(len), next(subNode) {} length(len), next(subNode) {}
virtual UBool operator==(const Node &other) const; virtual UBool operator==(const Node &other) const;
virtual int32_t markRightEdgesFirst(int32_t edgeNumber); virtual int32_t markRightEdgesFirst(int32_t edgeNumber);
--- source/common/uresbund.cpp
+++ source/common/uresbund.cpp
@@ -53,7 +53,7 @@
UHashTok namekey, pathkey;
namekey.pointer = b->fName;
pathkey.pointer = b->fPath;
- return uhash_hashChars(namekey)+37*uhash_hashChars(pathkey);
+ return uhash_hashChars(namekey)+37U*uhash_hashChars(pathkey);
}
/* INTERNAL: compares two entries */
--- source/common/ustring.cpp --- source/common/ustring.cpp
+++ source/common/ustring.cpp +++ source/common/ustring.cpp
@@ -1486,7 +1486,7 @@ @@ -1486,7 +1486,7 @@
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment