git.asbjorn.biz
/
swftools.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
196855b
)
fixed compiler warning
author
kramm
<kramm>
Sun, 6 Mar 2005 20:19:27 +0000
(20:19 +0000)
committer
kramm
<kramm>
Sun, 6 Mar 2005 20:19:27 +0000
(20:19 +0000)
pdf2swf/xpdf/cmyk.cc
patch
|
blob
|
history
diff --git
a/pdf2swf/xpdf/cmyk.cc
b/pdf2swf/xpdf/cmyk.cc
index
82f2bee
..
970289f
100644
(file)
--- 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++) {