diff options
author | Caolán McNamara <caolanm@redhat.com> | 2017-09-29 10:43:53 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2017-09-29 21:54:37 +0200 |
commit | 15dbae3bd0d13a5c374e2297b170e285e57af438 (patch) | |
tree | 9401cbbcb9adaed77672f71b83ba52ae828c6fd4 | |
parent | 6a8bae45f85a4570708fe984ccd7aebad7e389a2 (diff) |
ofz+ubsan: signed integer overflow
Change-Id: Ia8d0bb650d222ccda4c323eabebc4b1162fcf42f
Reviewed-on: https://gerrit.libreoffice.org/42933
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>
-rw-r--r-- | vcl/source/font/fontselect.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/vcl/source/font/fontselect.cxx b/vcl/source/font/fontselect.cxx index 8141c859ba94..062261263409 100644 --- a/vcl/source/font/fontselect.cxx +++ b/vcl/source/font/fontselect.cxx @@ -114,7 +114,7 @@ size_t FontSelectPatternAttributes::hashCode() const { nHash = maSearchName.hashCode(); } - nHash += 11 * mnHeight; + nHash += 11U * mnHeight; nHash += 19 * GetWeight(); nHash += 29 * GetItalic(); nHash += 37 * mnOrientation; |