diff options
author | Caolán McNamara <caolanm@redhat.com> | 2019-07-20 15:27:38 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2019-07-20 20:48:15 +0200 |
commit | 1f3c1b4ca12400348f30f30c2fb7ddfe2c71b2f7 (patch) | |
tree | 4e41a6ff3393996e21c3f3d86650bff7fb5cd783 /vcl/source/bitmap | |
parent | 9fa09e7a14c990e36e9eba7350fd2015e6b7082c (diff) |
cid#1448542 Unintended sign extension
Change-Id: I5ef8661a1c8e28537c96cb899d124012938f4b1f
Reviewed-on: https://gerrit.libreoffice.org/76017
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'vcl/source/bitmap')
-rw-r--r-- | vcl/source/bitmap/BitmapScaleSuperFilter.cxx | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/vcl/source/bitmap/BitmapScaleSuperFilter.cxx b/vcl/source/bitmap/BitmapScaleSuperFilter.cxx index 7f7d5bffdd3c..acb3ad04f2a3 100644 --- a/vcl/source/bitmap/BitmapScaleSuperFilter.cxx +++ b/vcl/source/bitmap/BitmapScaleSuperFilter.cxx @@ -790,9 +790,9 @@ void scaleDown24bit(ScaleContext &rCtx, long nStartY, long nEndY) 1 : (rCtx.maMapIX[nRight] - rCtx.maMapIX[nLeft]); } - long nSum1 = 0; - long nSum2 = 0; - long nSum3 = 0; + int nSum1 = 0; + int nSum2 = 0; + int nSum3 = 0; BilinearWeightType nTotalWeightY = 0; for (long i = 0; i<= nLineRange; i++) |