diff options
author | Tomaž Vajngerl <tomaz.vajngerl@collabora.co.uk> | 2019-04-04 17:53:47 +0900 |
---|---|---|
committer | Tomaž Vajngerl <quikee@gmail.com> | 2019-04-04 15:04:01 +0200 |
commit | dc7fdd7e75ba4089e3c385479fd6b303d518efe5 (patch) | |
tree | 179be66ca858b4c9088618ac13b9757bbd01e26c /vcl/source | |
parent | 810e62b8ba9c0fa5152592ef6b01400bfcfe59c0 (diff) |
change GetColorCount to use sal_Int64
Hopefully fixes problems on 32-bit linux.
Change-Id: I1fc22f1bb37c8297bd3bd6828206d1ffa9ae722d
Reviewed-on: https://gerrit.libreoffice.org/70241
Tested-by: Jenkins
Reviewed-by: Tomaž Vajngerl <quikee@gmail.com>
Diffstat (limited to 'vcl/source')
-rw-r--r-- | vcl/source/bitmap/BitmapColorQuantizationFilter.cxx | 2 | ||||
-rw-r--r-- | vcl/source/bitmap/BitmapSimpleColorQuantizationFilter.cxx | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/vcl/source/bitmap/BitmapColorQuantizationFilter.cxx b/vcl/source/bitmap/BitmapColorQuantizationFilter.cxx index c877dd4adb66..390319d8ad9e 100644 --- a/vcl/source/bitmap/BitmapColorQuantizationFilter.cxx +++ b/vcl/source/bitmap/BitmapColorQuantizationFilter.cxx @@ -27,7 +27,7 @@ BitmapEx BitmapColorQuantizationFilter::execute(BitmapEx const& aBitmapEx) const bool bRet = false; - if (aBitmap.GetColorCount() <= static_cast<sal_uLong>(mnNewColorCount)) + if (aBitmap.GetColorCount() <= sal_Int64(mnNewColorCount)) { bRet = true; } diff --git a/vcl/source/bitmap/BitmapSimpleColorQuantizationFilter.cxx b/vcl/source/bitmap/BitmapSimpleColorQuantizationFilter.cxx index 1885308275e5..2f1fb9906a1f 100644 --- a/vcl/source/bitmap/BitmapSimpleColorQuantizationFilter.cxx +++ b/vcl/source/bitmap/BitmapSimpleColorQuantizationFilter.cxx @@ -24,7 +24,7 @@ BitmapEx BitmapSimpleColorQuantizationFilter::execute(BitmapEx const& aBitmapEx) bool bRet = false; - if (aBitmap.GetColorCount() <= static_cast<sal_uLong>(mnNewColorCount)) + if (aBitmap.GetColorCount() <= sal_Int64(mnNewColorCount)) { bRet = true; } |