]> granicus.if.org Git - libexpat/commitdiff
Add casts to suppress a couple of warnings from MSVC with warning level 4.
authorFred L. Drake, Jr. <fdrake@users.sourceforge.net>
Wed, 15 May 2002 15:57:22 +0000 (15:57 +0000)
committerFred L. Drake, Jr. <fdrake@users.sourceforge.net>
Wed, 15 May 2002 15:57:22 +0000 (15:57 +0000)
expat/lib/xmlparse.c
expat/xmlwf/codepage.c

index 6a97a0b8b4c408f5c9aa91400b8cf12784948f6a..6f6337a7238f3560f38db03551f9621c23974f9f 100644 (file)
@@ -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) {
index 4ab1344e70e2913320f5089315811627273142fb..12bfe508e10d0306415661ddcbb12196275844fe 100755 (executable)
@@ -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)