summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2017-09-29 10:43:53 +0100
committerCaolán McNamara <caolanm@redhat.com>2017-09-29 21:54:37 +0200
commit15dbae3bd0d13a5c374e2297b170e285e57af438 (patch)
tree9401cbbcb9adaed77672f71b83ba52ae828c6fd4
parent6a8bae45f85a4570708fe984ccd7aebad7e389a2 (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.cxx2
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;