expat/lib xmlparse.c,1.152,1.153

"Karl Waclawek" <[email protected]> Fri, 14 Apr 2006 10:19:17 -0700
Newsgroups gmane.text.xml.expat.cvs
Message-ID <[email protected]>
Update of /cvsroot/expat/expat/lib
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv17438

Modified Files:
	xmlparse.c 
Log Message:
One should not cast a pointer to unsigned long, as it may not work on non-32bit systems.

Index: xmlparse.c
===================================================================
RCS file: /cvsroot/expat/expat/lib/xmlparse.c,v
retrieving revision 1.152
retrieving revision 1.153
diff -u -d -r1.152 -r1.153
--- xmlparse.c	7 Apr 2006 20:24:20 -0000	1.152
+++ xmlparse.c	14 Apr 2006 17:19:09 -0000	1.153
@@ -26,7 +26,7 @@
 #define XmlGetInternalEncoding XmlGetUtf16InternalEncoding
 #define XmlGetInternalEncodingNS XmlGetUtf16InternalEncodingNS
 #define XmlEncode XmlUtf16Encode
-#define MUST_CONVERT(enc, s) (!(enc)->isUtf16 || (((unsigned long)s) & 1))
+#define MUST_CONVERT(enc, s) (!(enc)->isUtf16 || ((s - NULL) & 1))
 typedef unsigned short ICHAR;
 #else
 #define XML_ENCODE_MAX XML_UTF8_ENCODE_MAX