vcl/source/font/fontselect.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
New commits: commit 15dbae3bd0d13a5c374e2297b170e285e57af438 Author: Caolán McNamara <caol...@redhat.com> Date: Fri Sep 29 10:43:53 2017 +0100 ofz+ubsan: signed integer overflow Change-Id: Ia8d0bb650d222ccda4c323eabebc4b1162fcf42f Reviewed-on: https://gerrit.libreoffice.org/42933 Reviewed-by: Caolán McNamara <caol...@redhat.com> Tested-by: Caolán McNamara <caol...@redhat.com> 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;
_______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits