diff options
author | Slávek Banko <[email protected]> | 2017-06-01 08:53:08 +0200 |
---|---|---|
committer | Slávek Banko <[email protected]> | 2017-06-01 08:53:08 +0200 |
commit | cbc1062ce2a32d52e55445d303b1adb4078f87ec (patch) | |
tree | 85e3d0563da491547196340205a57f7eaebf4895 /chalk/colorspaces/gray_u8 | |
parent | 91809c36a1048802fc9073b9237b4d54ed5e1f24 (diff) | |
download | koffice-cbc1062ce2a32d52e55445d303b1adb4078f87ec.tar.gz koffice-cbc1062ce2a32d52e55445d303b1adb4078f87ec.zip |
Fix FTBFS on redefinitions in chalk/sdk/kis_integer_maths.h
Signed-off-by: Slávek Banko <[email protected]>
Diffstat (limited to 'chalk/colorspaces/gray_u8')
-rw-r--r-- | chalk/colorspaces/gray_u8/kis_gray_colorspace.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/chalk/colorspaces/gray_u8/kis_gray_colorspace.cc b/chalk/colorspaces/gray_u8/kis_gray_colorspace.cc index 7968e311..989cc2c5 100644 --- a/chalk/colorspaces/gray_u8/kis_gray_colorspace.cc +++ b/chalk/colorspaces/gray_u8/kis_gray_colorspace.cc @@ -746,8 +746,8 @@ void KisGrayColorSpace::compositeBurn(TQ_UINT8 *dstRowStart, TQ_INT32 dstRowStri TQ_UINT8 srcColor = src[channel]; TQ_UINT8 dstColor = dst[channel]; - srcColor = kMin(((UINT8_MAX - dstColor) * (UINT8_MAX + 1)) / (srcColor + 1), UINT8_MAX); - srcColor = kClamp(UINT8_MAX - srcColor, 0u, UINT8_MAX); + srcColor = kMin(((UINT8_MAX - dstColor) * (UINT8_MAX + 1u)) / (srcColor + 1u), (unsigned)UINT8_MAX); + srcColor = kClamp((unsigned)UINT8_MAX - srcColor, 0u, (unsigned)UINT8_MAX); TQ_UINT8 newColor = UINT8_BLEND(srcColor, dstColor, srcBlend); |