diff --git a/expat/xmltok/xmltok.c b/expat/xmltok/xmltok.c index 9d7e46b6..f7a5b2b2 100755 --- a/expat/xmltok/xmltok.c +++ b/expat/xmltok/xmltok.c @@ -1271,7 +1271,7 @@ XmlInitUnknownEncoding(void *mem, { int i; struct unknown_encoding *e = mem; - for (i = 0; i < sizeof(struct normal_encoding); i++) + for (i = 0; i < (int)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 @@ -1389,7 +1389,7 @@ int getEncodingIndex(const char *name) int i; if (name == 0) return NO_ENC; - for (i = 0; i < sizeof(encodingNames)/sizeof(encodingNames[0]); i++) + for (i = 0; i < (int)(sizeof(encodingNames)/sizeof(encodingNames[0])); i++) if (streqci(name, encodingNames[i])) return i; return UNKNOWN_ENC;