gcc 4 cleanups (mostly unsigned char* vs char*)
This commit is contained in:
@@ -2,12 +2,12 @@
|
||||
#include "byte.h"
|
||||
#include "str.h"
|
||||
|
||||
extern int stralloc_diffs(const stralloc* a,const unsigned char* b) {
|
||||
extern int stralloc_diffs(const stralloc* a,const char* b) {
|
||||
register unsigned long int i;
|
||||
register int j;
|
||||
for (i=0;;++i) {
|
||||
if (i==a->len) return (!b[i])?0:-1; if (!b[i]) return 1;
|
||||
if ((j=(a->s[i]-b[i]))) return j;
|
||||
if ((j=((unsigned char)(a->s[i])-(unsigned char)(b[i])))) return j;
|
||||
}
|
||||
return j;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user