[Checkins] SVN: zope.app.container/trunk/src/zope/app/container/_zope_proxy_proxy.c Made compatible with Python 2.5 on 64 bit architectures. See PEP 353.

Shane Hathaway shane at hathawaymix.org
Mon Jul 14 10:20:39 EDT 2008


Log message for revision 88350:
  Made compatible with Python 2.5 on 64 bit architectures.  See PEP 353.
  

Changed:
  U   zope.app.container/trunk/src/zope/app/container/_zope_proxy_proxy.c

-=-
Modified: zope.app.container/trunk/src/zope/app/container/_zope_proxy_proxy.c
===================================================================
--- zope.app.container/trunk/src/zope/app/container/_zope_proxy_proxy.c	2008-07-14 14:20:09 UTC (rev 88349)
+++ zope.app.container/trunk/src/zope/app/container/_zope_proxy_proxy.c	2008-07-14 14:20:39 UTC (rev 88350)
@@ -612,20 +612,20 @@
  *   Sequence methods
  */
 
-static int
+static Py_ssize_t
 wrap_length(PyObject *self)
 {
     return PyObject_Length(Proxy_GET_OBJECT(self));
 }
 
 static PyObject *
-wrap_slice(PyObject *self, int start, int end)
+wrap_slice(PyObject *self, Py_ssize_t start, Py_ssize_t end)
 {
     return PySequence_GetSlice(Proxy_GET_OBJECT(self), start, end);
 }
 
 static int
-wrap_ass_slice(PyObject *self, int i, int j, PyObject *value)
+wrap_ass_slice(PyObject *self, Py_ssize_t i, Py_ssize_t j, PyObject *value)
 {
     return PySequence_SetSlice(Proxy_GET_OBJECT(self), i, j, value);
 }



More information about the Checkins mailing list