mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-02-27 04:38:02 +00:00
Bug 1431866 - Avoid risk of undefined behavior in gfxFontStyle::Hash() calculation. r=jrmuizel
This commit is contained in:
parent
7ff4c1c33d
commit
6856ae796f
@ -185,7 +185,7 @@ struct gfxFontStyle {
|
||||
|
||||
PLDHashNumber Hash() const {
|
||||
return ((style + (systemFont << 7) +
|
||||
(weight << 8)) + uint32_t(size*1000) + uint32_t(sizeAdjust*1000)) ^
|
||||
(weight << 8)) + uint32_t(size*1000) + int32_t(sizeAdjust*1000)) ^
|
||||
nsRefPtrHashKey<nsAtom>::HashKey(language);
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user