\r
main(int argc, char **argv)\r
{\r
- int i, j, k, d, cnt; char c, h, w, *p, data[10000], *name;\r
+ int i, j, k, d, cnt; char c, *p, data[10000], *name; unsigned char h, w;\r
FILE *f;\r
\r
if(argc<2) { printf("usage is: convert <bmp filename>\n"); exit(0); }\r
for(i=0; name[i]; i++) if(name[i] == '.') name[i] = 0;\r
printf("#define %s_width %d\n", name, w);\r
printf("#define %s_height %d\n", name, h);\r
- printf("static char %s_bits[] = {\n", name);\r
+ printf("static unsigned char %s_bits[] = {\n", name);\r
cnt = 0;\r
for(i=h-1; i>=0; i--) {\r
for(j=0; j<w; j+=8) {\r