From: kramm Date: Sun, 6 Mar 2005 20:19:27 +0000 (+0000) Subject: fixed compiler warning X-Git-Tag: release-0-7-0~171 X-Git-Url: http://git.asbjorn.biz/?a=commitdiff_plain;h=9c8a4b1178136bdaa474be750c798651d508eef7;hp=196855b46ecbd65f92a971197954cc56d84f154c;p=swftools.git fixed compiler warning --- 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++) {