X-Git-Url: http://git.asbjorn.biz/?a=blobdiff_plain;f=pdf2swf%2Fxpdf%2Fcmyk.cc;h=970289f967143f6bc46a138c00e15a8dae76e712;hb=8dfc6f217c5aa90017442935217bd5564f62757d;hp=82f2bee168de1e58cff8a3315305cc297d92ca55;hpb=d190c41fbaa26ed2af61ec11f304cbed263a06c7;p=swftools.git diff --git a/pdf2swf/xpdf/cmyk.cc b/pdf2swf/xpdf/cmyk.cc index 82f2bee..970289f 100644 --- a/pdf2swf/xpdf/cmyk.cc +++ b/pdf2swf/xpdf/cmyk.cc @@ -632,9 +632,9 @@ void convert_cmyk2rgb(float c,float m,float y,float k, unsigned char*r, unsigned if(g2<0)g2=0; if(g2>255)g2=255; if(b2<0)b2=0; if(b2>255)b2=255; - *r = r2; - *g = g2; - *b = b2; + *r = (unsigned char)r2; + *g = (unsigned char)g2; + *b = (unsigned char)b2; /*f(!check(c,m,y,k, *r/255.0, *g/255.0, *b/255.0)) { for(t=0;t<16;t++) {