]> granicus.if.org Git - libexpat/commitdiff
Fix Apache warnings
authorJames Clark <jjc@jclark.com>
Wed, 2 Jun 1999 11:20:06 +0000 (11:20 +0000)
committerJames Clark <jjc@jclark.com>
Wed, 2 Jun 1999 11:20:06 +0000 (11:20 +0000)
expat/xmltok/xmltok_ns.c

index f2541616a528cc61497e950107aa5d8e34af002b..40bf965fb4aa2cc2920b95d9f54f0ce2422a646d 100755 (executable)
@@ -45,7 +45,7 @@ int NS(XmlInitEncoding)(INIT_ENCODING *p, const ENCODING **encPtr, const char *n
   int i = getEncodingIndex(name);
   if (i == UNKNOWN_ENC)
     return 0;
-  INIT_ENC_INDEX(p) = (char)i;
+  SET_INIT_ENC_INDEX(p, i);
   p->initEnc.scanners[XML_PROLOG_STATE] = NS(initScanProlog);
   p->initEnc.scanners[XML_CONTENT_STATE] = NS(initScanContent);
   p->initEnc.updatePosition = initUpdatePosition;