silence all gcc warnings

This commit is contained in:
Russ Cox
2005-11-07 17:13:41 +00:00
parent 7732ac0a9b
commit 1c8b499228
47 changed files with 192 additions and 128 deletions

View File

@ -32,13 +32,13 @@ init(void)
memset(tab.t10, INVAL, sizeof(tab.t10));
for(p = set64; *p; p++)
tab.t64[*p] = p-set64;
tab.t64[(uchar)*p] = p-set64;
for(p = set32; *p; p++)
tab.t32[*p] = p-set32;
tab.t32[(uchar)*p] = p-set32;
for(p = set16; *p; p++)
tab.t16[*p] = (p-set16)%16;
tab.t16[(uchar)*p] = (p-set16)%16;
for(p = set10; *p; p++)
tab.t10[*p] = (p-set10);
tab.t10[(uchar)*p] = (p-set10);
tab.inited = 1;
}
@ -52,7 +52,7 @@ from16(char *a, mpint *b)
b->top = 0;
for(p = a; *p; p++)
if(tab.t16[*p] == INVAL)
if(tab.t16[(uchar)*p] == INVAL)
break;
mpbits(b, (p-a)*4);
b->top = 0;
@ -62,7 +62,7 @@ from16(char *a, mpint *b)
for(i = 0; i < Dbits; i += 4){
if(p <= a)
break;
x |= tab.t16[*--p]<<i;
x |= tab.t16[(uchar)*--p]<<i;
}
b->p[b->top++] = x;
}
@ -88,7 +88,7 @@ from10(char *a, mpint *b)
// do a billion at a time in native arithmetic
x = 0;
for(i = 0; i < 9; i++){
y = tab.t10[*a];
y = tab.t10[(uchar)*a];
if(y == INVAL)
break;
a++;
@ -118,7 +118,7 @@ from64(char *a, mpint *b)
uchar *p;
int n, m;
for(; tab.t64[*a] != INVAL; a++)
for(; tab.t64[(uchar)*a] != INVAL; a++)
;
n = a-buf;
mpbits(b, n*6);
@ -138,7 +138,7 @@ from32(char *a, mpint *b)
uchar *p;
int n, m;
for(; tab.t64[*a] != INVAL; a++)
for(; tab.t64[(uchar)*a] != INVAL; a++)
;
n = a-buf;
mpbits(b, n*5);