aboutsummaryrefslogtreecommitdiffstats
path: root/wr
diff options
context:
space:
mode:
authorStéphane Aulery <saulery@free.fr>2014-11-08 18:00:26 +0100
committerGerd Hoffmann <kraxel@redhat.com>2014-11-17 14:31:49 +0100
commit6e81ca91fa8e62ca6fb5ba41c45bbd6a605d514c (patch)
tree23098f39c8e233100e892fd2615c2b4ee2c815b3 /wr
parentb1ad6e37beddb396f7cbd1fd1dca48036d85c016 (diff)
downloadfbida-6e81ca91fa8e62ca6fb5ba41c45bbd6a605d514c.tar.gz
Fix cppcheck warning %d in format string requires 'int' but the argument type is 'unsigned int'
Signed-off-by: Stéphane Aulery <saulery@free.fr> Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Diffstat (limited to 'wr')
-rw-r--r--wr/write-ps.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/wr/write-ps.c b/wr/write-ps.c
index 914a896..ee34988 100644
--- a/wr/write-ps.c
+++ b/wr/write-ps.c
@@ -415,20 +415,20 @@ ps_write(FILE *fp, struct ida_image *img)
fprintf(fp,header, /* includes bbox */
xoff,yoff,xoff+width,yoff+height);
fprintf(fp,"\n"
- "/pix %d string def\n"
- "/grays %d string def\n"
+ "/pix %u string def\n"
+ "/grays %u string def\n"
"/npixls 0 def\n"
"/rgbindx 0 def\n"
"\n",
img->i.width*3,img->i.width);
fwrite(ColorImage,strlen(ColorImage),1,fp);
- fprintf(fp,"%d %d translate\n",xoff,yoff);
- fprintf(fp,"%d %d scale\n",width,height);
+ fprintf(fp,"%u %u translate\n",xoff,yoff);
+ fprintf(fp,"%u %u scale\n",width,height);
fprintf(fp,"\n"
- "%d %d 8\n"
- "[%d 0 0 -%d 0 %d]\n"
+ "%u %u 8\n"
+ "[%u 0 0 -%u 0 %u]\n"
"{currentfile pix readhexstring pop}\n"
"false 3 colorimage\n",
iwidth,iheight,iwidth,iheight,iheight);