From: James Clark <jjc@jclark.com>
Date: Mon, 8 May 2000 04:26:17 +0000 (+0000)
Subject: Warning patch from Nisheeth.
X-Git-Tag: V20000512~10
X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=3b0208f5d2b7ec038bfc56e8551f375f5dba02e9;p=libexpat

Warning patch from Nisheeth.
---

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;