mirror of
https://github.com/libexpat/libexpat.git
synced 2025-04-15 00:38:15 +00:00
Warning patch from Nisheeth.
This commit is contained in:
parent
7e9f661f09
commit
3b0208f5d2
1 changed files with 2 additions and 2 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Reference in a new issue