diff options
author | Peter Breitenlohner <peb@mppmu.mpg.de> | 2011-05-02 12:29:48 +0000 |
---|---|---|
committer | Peter Breitenlohner <peb@mppmu.mpg.de> | 2011-05-02 12:29:48 +0000 |
commit | 808caf0e3038020441cdb1d964efd26ebc6ba474 (patch) | |
tree | f72207f17bd49ccc4d9e78e974f8a95762c4a68e /Build/source/texk/mendexk/fwrite.c | |
parent | 55899550ec16f1a2fccf4420316345016882f7cd (diff) |
texk/mendex: Change most 'unsigned char' into plain 'char'
to avoid lots of 'differ in signedness' warnings from gcc-4.4
git-svn-id: svn://tug.org/texlive/trunk@22277 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Build/source/texk/mendexk/fwrite.c')
-rw-r--r-- | Build/source/texk/mendexk/fwrite.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/Build/source/texk/mendexk/fwrite.c b/Build/source/texk/mendexk/fwrite.c index 2f2b35283e2..07b332fa647 100644 --- a/Build/source/texk/mendexk/fwrite.c +++ b/Build/source/texk/mendexk/fwrite.c @@ -74,7 +74,7 @@ int verb_printf(FILE *fp, const char *format, ...) void indwrite(char *filename, struct index *ind, int pagenum) { int i,j,hpoint=0; - unsigned char datama[256],lbuff[4096]; + char datama[256],lbuff[4096]; FILE *fp; if (filename[0]!='\0' && kpse_out_name_ok(filename)) fp=fopen(filename,"w"); @@ -116,7 +116,7 @@ void indwrite(char *filename, struct index *ind, int pagenum) if (lethead_flag) { fputs(lethead_prefix,fp); for (j=hpoint;j<(strlen(datama)/2);j++) { - if (ind[i].dic[0][1]<datama[j*2+1]) { + if ((unsigned char)ind[i].dic[0][1]<(unsigned char)datama[j*2+1]) { fprintf(fp,"%c%c",atama[(j-1)*2],atama[(j-1)*2+1]); hpoint=j; break; @@ -129,7 +129,7 @@ void indwrite(char *filename, struct index *ind, int pagenum) } sprintf(lbuff,"%s%s",item_0,ind[i].idx[0]); for (hpoint=0;hpoint<(strlen(datama)/2);hpoint++) { - if (ind[i].dic[0][1]<datama[hpoint*2+1]) { + if ((unsigned char)ind[i].dic[0][1]<(unsigned char)datama[hpoint*2+1]) { break; } } @@ -177,7 +177,7 @@ void indwrite(char *filename, struct index *ind, int pagenum) } else if (japanese(ind[i].dic[0])) { for (j=hpoint;j<(strlen(datama)/2);j++) { - if ((ind[i].dic[0][0]<=datama[j*2])&&(ind[i].dic[0][1]<datama[j*2+1])) { + if ((unsigned char)(ind[i].dic[0][0]<=(unsigned char)datama[j*2])&&((unsigned char)ind[i].dic[0][1]<(unsigned char)datama[j*2+1])) { break; } } |