Commits

Walter Dörwald committed fab59c7

Fix PyArg_ParseTuple() calls for 64-bit systems.

Comments (0)

Files changed (2)

 *	The script ``ucp`` now changes the user and group only if a user or group is
 	given.
 
+*	A bug in the 64-bit support for :mod:`sgmlop` has been fixed.
+
 *	Fixed a bug in the remote :meth:`stat` method for ssh URLs (it seems that
 	the :class:`posix.stat_result` tuple objects can no longer be pickled).
 

src/ll/xist/sgmlop.c

    possible, and keeps the rest in a local buffer. */
 
 static PyObject*
-feed(FastParserObject* self, CHAR_T* string, Py_ssize_t stringlen, int last)
+feed(FastParserObject* self, CHAR_T* string, int stringlen, int last)
 {
     /* common subroutine for SGMLParser.feed and SGMLParser.close */
 
-    Py_ssize_t length;
+    int length;
 
     if (self->feed) {
         /* dealing with recursive feeds isn't exactly trivial, so
     /* feed a chunk of data to the parser */
 
     CHAR_T* string;
-    Py_ssize_t stringlen;
+    int stringlen;
     if (!PyArg_ParseTuple(args, PARSEFORMAT ":feed", &string, &stringlen))
         return NULL;
 
     /* feed a single chunk of data to the parser */
 
     CHAR_T* string;
-    Py_ssize_t stringlen;
+    int stringlen;
     if (!PyArg_ParseTuple(args, PARSEFORMAT ":parse", &string, &stringlen))
         return NULL;