mirror of
https://github.com/unicode-org/icu.git
synced 2025-04-14 17:24:01 +00:00
ICU-13008 Signed int overflow (undefined behavior) in datefmt.cpp
X-SVN-Rev: 39718
This commit is contained in:
parent
abc3231fb2
commit
80606f5b57
1 changed files with 1 additions and 1 deletions
|
@ -80,7 +80,7 @@ public:
|
|||
fSkeleton(other.fSkeleton) { }
|
||||
virtual ~DateFmtBestPatternKey();
|
||||
virtual int32_t hashCode() const {
|
||||
return 37 * LocaleCacheKey<DateFmtBestPattern>::hashCode() + fSkeleton.hashCode();
|
||||
return (int32_t)(37u * (uint32_t)LocaleCacheKey<DateFmtBestPattern>::hashCode() + (uint32_t)fSkeleton.hashCode());
|
||||
}
|
||||
virtual UBool operator==(const CacheKeyBase &other) const {
|
||||
// reflexive
|
||||
|
|
Loading…
Add table
Reference in a new issue