summaryrefslogtreecommitdiff
path: root/python/cache.cc
diff options
context:
space:
mode:
authorMichael Vogt <michael.vogt@ubuntu.com>2006-09-18 19:40:46 +0200
committerMichael Vogt <michael.vogt@ubuntu.com>2006-09-18 19:40:46 +0200
commit5b7efad60b731077902cb03bcffd207b6c89e2e4 (patch)
treea1ef736bc912c41a11e911279677671bf5df43b6 /python/cache.cc
parenta9dd5cc00d723bedc06a0d17c7ede97fb66c14fd (diff)
parentddfb5f9abcc398843e48885bbc8b3e4439c14e7b (diff)
downloadpython-apt-5b7efad60b731077902cb03bcffd207b6c89e2e4.tar.gz
* merged with python-apt--mvo
Diffstat (limited to 'python/cache.cc')
-rw-r--r--python/cache.cc8
1 files changed, 4 insertions, 4 deletions
diff --git a/python/cache.cc b/python/cache.cc
index 15b63b35..aa4d9ffc 100644
--- a/python/cache.cc
+++ b/python/cache.cc
@@ -287,12 +287,12 @@ PyTypeObject PkgCacheFileType =
/*}}}*/
// Package List Class /*{{{*/
// ---------------------------------------------------------------------
-static int PkgListLen(PyObject *Self)
+static Py_ssize_t PkgListLen(PyObject *Self)
{
return GetCpp<PkgListStruct>(Self).Iter.Cache()->HeaderP->PackageCount;
}
-static PyObject *PkgListItem(PyObject *iSelf,int Index)
+static PyObject *PkgListItem(PyObject *iSelf,Py_ssize_t Index)
{
PkgListStruct &Self = GetCpp<PkgListStruct>(iSelf);
if (Index < 0 || (unsigned)Index >= Self.Iter.Cache()->HeaderP->PackageCount)
@@ -884,12 +884,12 @@ PyTypeObject DependencyType =
/*}}}*/
// Reverse Dependency List Class /*{{{*/
// ---------------------------------------------------------------------
-static int RDepListLen(PyObject *Self)
+static Py_ssize_t RDepListLen(PyObject *Self)
{
return GetCpp<RDepListStruct>(Self).Len;
}
-static PyObject *RDepListItem(PyObject *iSelf,int Index)
+static PyObject *RDepListItem(PyObject *iSelf,Py_ssize_t Index)
{
RDepListStruct &Self = GetCpp<RDepListStruct>(iSelf);
if (Index < 0 || (unsigned)Index >= Self.Len)