summaryrefslogtreecommitdiff
path: root/thirdparty/liblcms2
diff options
context:
space:
mode:
authorMatthieu Darbois <mayeut@users.noreply.github.com>2016-05-03 22:22:03 +0200
committerMatthieu Darbois <mayeut@users.noreply.github.com>2016-05-03 22:22:03 +0200
commit44a499f2acf10b55172d07abf387e5a579a585f7 (patch)
tree8e311ebaf4d160866db5e685a624bb82db8ec616 /thirdparty/liblcms2
parent94cfb1b008319e8b0b17e741f1e29e0a7b90af38 (diff)
Update lcms2 (#773)
Update to mm2/Little-CMS@e342f44
Diffstat (limited to 'thirdparty/liblcms2')
-rw-r--r--thirdparty/liblcms2/src/lcms2_internal.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/thirdparty/liblcms2/src/lcms2_internal.h b/thirdparty/liblcms2/src/lcms2_internal.h
index e1219036..695d4b8d 100644
--- a/thirdparty/liblcms2/src/lcms2_internal.h
+++ b/thirdparty/liblcms2/src/lcms2_internal.h
@@ -101,7 +101,7 @@
// A fast way to convert from/to 16 <-> 8 bits
#define FROM_8_TO_16(rgb) (cmsUInt16Number) ((((cmsUInt16Number) (rgb)) << 8)|(rgb))
-#define FROM_16_TO_8(rgb) (cmsUInt8Number) ((((rgb) * 65281 + 8388608) >> 24) & 0xFF)
+#define FROM_16_TO_8(rgb) (cmsUInt8Number) ((((cmsUInt32Number)(rgb) * 65281U + 8388608U) >> 24) & 0xFFU)
// Code analysis is broken on asserts
#ifdef _MSC_VER