4 cmsBool CMSEXPORT cmsMLUsetWide(cmsMLU* mlu, const char Language[3], const char Country[3], const wchar_t* WideString)
6 cmsUInt16Number Lang = _cmsAdjustEndianess16(*(cmsUInt16Number*) Language);
7 - cmsUInt16Number Cntry = _cmsAdjustEndianess16(*(cmsUInt16Number*) Country);
8 + cmsUInt16Number Cntry = Country[0] | ((cmsUInt16Number) Country[1]) << 8;
11 if (mlu == NULL) return FALSE;
12 --- src/lcms2_internal.h
13 +++ src/lcms2_internal.h
16 // A fast way to convert from/to 16 <-> 8 bits
17 #define FROM_8_TO_16(rgb) (cmsUInt16Number) ((((cmsUInt16Number) (rgb)) << 8)|(rgb))
18 -#define FROM_16_TO_8(rgb) (cmsUInt8Number) ((((rgb) * 65281 + 8388608) >> 24) & 0xFF)
19 +#define FROM_16_TO_8(rgb) (cmsUInt8Number) ((((unsigned)(rgb) * 65281 + 8388608) >> 24) & 0xFF)
21 // Code analysis is broken on asserts