gcc 4 cleanups (mostly unsigned char* vs char*)

This commit is contained in:
leitner
2005-04-23 15:50:16 +00:00
parent dd5f8d13c3
commit c874604f12
69 changed files with 119 additions and 103 deletions

View File

@@ -7,7 +7,7 @@ extern int stralloc_diff(const stralloc* a,const stralloc* b) {
register int j;
for (i=0;;++i) {
if (i==a->len) return i==b->len?0:-1; if (i==b->len) return 1;
if ((j=(a->s[i]-b->s[i]))) return j;
if ((j=((unsigned char)(a->s[i])-(unsigned char)(b->s[i])))) return j;
}
return j;
}