summaryrefslogtreecommitdiffstats
path: root/chalk/colorspaces/rgb_u16
diff options
context:
space:
mode:
authorSlávek Banko <slavek.banko@axis.cz>2017-06-01 08:53:08 +0200
committerSlávek Banko <slavek.banko@axis.cz>2017-06-01 08:53:08 +0200
commitcbc1062ce2a32d52e55445d303b1adb4078f87ec (patch)
tree85e3d0563da491547196340205a57f7eaebf4895 /chalk/colorspaces/rgb_u16
parent91809c36a1048802fc9073b9237b4d54ed5e1f24 (diff)
downloadkoffice-cbc1062ce2a32d52e55445d303b1adb4078f87ec.tar.gz
koffice-cbc1062ce2a32d52e55445d303b1adb4078f87ec.zip
Fix FTBFS on redefinitions in chalk/sdk/kis_integer_maths.h
Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
Diffstat (limited to 'chalk/colorspaces/rgb_u16')
-rw-r--r--chalk/colorspaces/rgb_u16/kis_rgb_u16_colorspace.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/chalk/colorspaces/rgb_u16/kis_rgb_u16_colorspace.cc b/chalk/colorspaces/rgb_u16/kis_rgb_u16_colorspace.cc
index 75aa6649..40198c91 100644
--- a/chalk/colorspaces/rgb_u16/kis_rgb_u16_colorspace.cc
+++ b/chalk/colorspaces/rgb_u16/kis_rgb_u16_colorspace.cc
@@ -444,8 +444,8 @@ void KisRgbU16ColorSpace::compositeBurn(TQ_UINT8 *dstRowStart, TQ_INT32 dstRowSt
TQ_UINT16 srcColor = src[channel];
TQ_UINT16 dstColor = dst[channel];
- srcColor = kMin(((UINT16_MAX - dstColor) * (UINT16_MAX + 1u)) / (srcColor + 1u), UINT16_MAX);
- srcColor = kClamp(UINT16_MAX - srcColor, 0u, UINT16_MAX);
+ srcColor = kMin(((UINT16_MAX - dstColor) * (UINT16_MAX + 1u)) / (srcColor + 1u), (unsigned)UINT16_MAX);
+ srcColor = kClamp((unsigned)UINT16_MAX - srcColor, 0u, (unsigned)UINT16_MAX);
TQ_UINT16 newColor = UINT16_BLEND(srcColor, dstColor, srcBlend);