From ff7d9066dae29da2bcfe611b62bcb276ce2afff0 Mon Sep 17 00:00:00 2001 From: =?utf8?q?W=C5=82odzimierz=20Skiba?= Date: Mon, 29 May 2006 10:11:45 +0000 Subject: [PATCH] Warning fix. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@39432 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/common/imagjpeg.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/common/imagjpeg.cpp b/src/common/imagjpeg.cpp index c10f764da4..14b2d18835 100644 --- a/src/common/imagjpeg.cpp +++ b/src/common/imagjpeg.cpp @@ -209,13 +209,13 @@ static inline void wx_cmyk_to_rgb(unsigned char* rgb, const unsigned char* cmyk) register int c; c = k + k2 * (255 - cmyk[0]) / 255; - rgb[0] = (c > 255) ? 0 : (255 - c); + rgb[0] = (unsigned char)((c > 255) ? 0 : (255 - c)); c = k + k2 * (255 - cmyk[1]) / 255; - rgb[1] = (c > 255) ? 0 : (255 - c); + rgb[1] = (unsigned char)((c > 255) ? 0 : (255 - c)); c = k + k2 * (255 - cmyk[2]) / 255; - rgb[2] = (c > 255) ? 0 : (255 - c); + rgb[2] = (unsigned char)((c > 255) ? 0 : (255 - c)); } // temporarily disable the warning C4611 (interaction between '_setjmp' and -- 2.45.2