Fix "comparison between signed and unsigned" build warning.

This commit is contained in:
slamm%netscape.com 2000-04-26 14:25:47 +00:00
parent 8b6150166b
commit b88fd6760c
2 changed files with 4 additions and 4 deletions

View File

@ -1273,14 +1273,14 @@ XmlInitUnknownEncoding(void *mem,
int (*convert)(void *userData, const char *p),
void *userData)
{
int i;
unsigned int i;
struct unknown_encoding *e = mem;
for (i = 0; i < sizeof(struct normal_encoding); i++)
((char *)mem)[i] = ((char *)&latin1_encoding)[i];
for (i = 0; i < 128; i++)
if (latin1_encoding.type[i] != BT_OTHER
&& latin1_encoding.type[i] != BT_NONXML
&& table[i] != i)
&& table[i] != (int)i)
return 0;
for (i = 0; i < 256; i++) {
int c = table[i];

View File

@ -1273,14 +1273,14 @@ XmlInitUnknownEncoding(void *mem,
int (*convert)(void *userData, const char *p),
void *userData)
{
int i;
unsigned int i;
struct unknown_encoding *e = mem;
for (i = 0; i < sizeof(struct normal_encoding); i++)
((char *)mem)[i] = ((char *)&latin1_encoding)[i];
for (i = 0; i < 128; i++)
if (latin1_encoding.type[i] != BT_OTHER
&& latin1_encoding.type[i] != BT_NONXML
&& table[i] != i)
&& table[i] != (int)i)
return 0;
for (i = 0; i < 256; i++) {
int c = table[i];