From 15dbae3bd0d13a5c374e2297b170e285e57af438 Mon Sep 17 00:00:00 2001 From: Caolán McNamara Date: Fri, 29 Sep 2017 10:43:53 +0100 Subject: ofz+ubsan: signed integer overflow MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Change-Id: Ia8d0bb650d222ccda4c323eabebc4b1162fcf42f Reviewed-on: https://gerrit.libreoffice.org/42933 Reviewed-by: Caolán McNamara Tested-by: Caolán McNamara --- vcl/source/font/fontselect.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- cgit