From 5b5c48d4a303f603272ef986d3e4e41092c9dd81 Mon Sep 17 00:00:00 2001 From: "Fred L. Drake, Jr." Date: Wed, 15 May 2002 15:57:22 +0000 Subject: [PATCH] Add casts to suppress a couple of warnings from MSVC with warning level 4. --- expat/lib/xmlparse.c | 4 ++-- expat/xmlwf/codepage.c | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/expat/lib/xmlparse.c b/expat/lib/xmlparse.c index 6a97a0b8..6f6337a7 100644 --- a/expat/lib/xmlparse.c +++ b/expat/lib/xmlparse.c @@ -1559,7 +1559,7 @@ doContent(XML_Parser parser, { const XML_Char *name; ENTITY *entity; - XML_Char ch = XmlPredefinedEntityName(enc, + XML_Char ch = (XML_Char) XmlPredefinedEntityName(enc, s + enc->minBytesPerChar, next - enc->minBytesPerChar); if (ch) { @@ -3527,7 +3527,7 @@ appendAttributeValue(XML_Parser parser, const ENCODING *enc, int isCdata, { const XML_Char *name; ENTITY *entity; - XML_Char ch = XmlPredefinedEntityName(enc, + XML_Char ch = (XML_Char) XmlPredefinedEntityName(enc, ptr + enc->minBytesPerChar, next - enc->minBytesPerChar); if (ch) { diff --git a/expat/xmlwf/codepage.c b/expat/xmlwf/codepage.c index 4ab1344e..12bfe508 100755 --- a/expat/xmlwf/codepage.c +++ b/expat/xmlwf/codepage.c @@ -31,7 +31,7 @@ int codepageMap(int cp, int *map) } for (i = 0; i < 256; i++) { if (map[i] == -1) { - char c = i; + char c = (char)i; unsigned short n; if (MultiByteToWideChar(cp, MB_PRECOMPOSED|MB_ERR_INVALID_CHARS, &c, 1, &n, 1) == 1) -- 2.40.0