summaryrefslogtreecommitdiff
path: root/vcl/inc/bitmap/impoctree.hxx
diff options
context:
space:
mode:
Diffstat (limited to 'vcl/inc/bitmap/impoctree.hxx')
-rw-r--r--vcl/inc/bitmap/impoctree.hxx5
1 files changed, 3 insertions, 2 deletions
diff --git a/vcl/inc/bitmap/impoctree.hxx b/vcl/inc/bitmap/impoctree.hxx
index 6b242a2a367c..aab1c53f5019 100644
--- a/vcl/inc/bitmap/impoctree.hxx
+++ b/vcl/inc/bitmap/impoctree.hxx
@@ -100,8 +100,9 @@ inline void ImpErrorQuad::ImplAddColorError7(const ImpErrorQuad& rErrQuad)
inline BitmapColor ImpErrorQuad::ImplGetColor()
{
- return BitmapColor(std::clamp(nRed, 0L, 8160L) >> 5, std::clamp(nGreen, 0L, 8160L) >> 5,
- std::clamp(nBlue, 0L, 8160L) >> 5);
+ return BitmapColor(std::clamp(nRed, tools::Long(0), tools::Long(8160)) >> 5,
+ std::clamp(nGreen, tools::Long(0), tools::Long(8160)) >> 5,
+ std::clamp(nBlue, tools::Long(0), tools::Long(8160)) >> 5);
}
#endif // INCLUDED_VCL_INC_IMPOCTREE_HXX