[Expat-checkins] expat/examples elements.c,1.7,1.8

Karl Waclawek kwaclaw at users.sourceforge.net
Fri Apr 14 20:03:40 CEST 2006


Update of /cvsroot/expat/expat/examples
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv12676

Modified Files:
	elements.c 
Log Message:
Casting away some integer conversion warnings that should not pose a problem.

Index: elements.c
===================================================================
RCS file: /cvsroot/expat/expat/examples/elements.c,v
retrieving revision 1.7
retrieving revision 1.8
diff -u -d -r1.7 -r1.8
--- elements.c	28 Dec 2005 18:43:36 -0000	1.7
+++ elements.c	14 Apr 2006 18:03:36 -0000	1.8
@@ -52,7 +52,7 @@
   XML_SetUserData(parser, &depth);
   XML_SetElementHandler(parser, startElement, endElement);
   do {
-    size_t len = fread(buf, 1, sizeof(buf), stdin);
+    int len = (int)fread(buf, 1, sizeof(buf), stdin);
     done = len < sizeof(buf);
     if (XML_Parse(parser, buf, len, done) == XML_STATUS_ERROR) {
       fprintf(stderr,



More information about the Expat-checkins mailing list