summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2016-10-21 09:04:49 +0100
committerCaolán McNamara <caolanm@redhat.com>2016-10-21 09:04:49 +0100
commit5c0265a78a5bb2633a42ff820a5837ef62cc91f1 (patch)
tree2fee580e977c52f27ceddd6acd65f2c0c2f8234f
parent851703f2c525ee4192d9837998ce3e9f66f92012 (diff)
coverity#1374090 Unintentional integer overflow
and coverity#1374091 Unintentional integer overflow Change-Id: Ia36b1feafc44e6ea65c55c9ffc661256276d9b29
-rw-r--r--vcl/source/gdi/CommonSalLayout.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/vcl/source/gdi/CommonSalLayout.cxx b/vcl/source/gdi/CommonSalLayout.cxx
index 8432e91342b9..96762f1b7627 100644
--- a/vcl/source/gdi/CommonSalLayout.cxx
+++ b/vcl/source/gdi/CommonSalLayout.cxx
@@ -101,8 +101,8 @@ static hb_font_t* createHbFont(hb_face_t* pHbFace)
static void scaleHbFont(hb_font_t* pHbFont, const FontSelectPattern& aFontSelData)
{
- uint64_t nXScale = aFontSelData.mnWidth << 6;
- uint64_t nYScale = aFontSelData.mnHeight << 6;
+ unsigned int nXScale = aFontSelData.mnWidth << 6;
+ unsigned int nYScale = aFontSelData.mnHeight << 6;
#if defined(_WIN32)
// HACK to get stretched/shrunken text. TODO: Get rid of HACK