Skip to content

Commit

Permalink
Merge from trunk:
Browse files Browse the repository at this point in the history
------------------------------------------------------------------------
r88350 | shane | 2008-07-14 16:20:39 +0200 (Mon, 14 Jul 2008) | 2 lines

Made compatible with Python 2.5 on 64 bit architectures.  See PEP 353.

------------------------------------------------------------------------
  • Loading branch information
philikon committed Jul 27, 2008
1 parent 12607ea commit 63f8952
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion CHANGES.txt
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ CHANGES
3.5.5dev (unreleased)
---------------------

-
- Made C code compatible with Python 2.5 on 64bit architectures.

3.5.4 (2008-07-16)
---------------------
Expand Down
6 changes: 3 additions & 3 deletions src/zope/app/container/_zope_proxy_proxy.c
Original file line number Diff line number Diff line change
Expand Up @@ -612,20 +612,20 @@ wrap_nonzero(PyObject *self)
* 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);
}
Expand Down

0 comments on commit 63f8952

Please sign in to comment.