summaryrefslogtreecommitdiff
path: root/python/cache.cc
diff options
context:
space:
mode:
authorMichael Vogt <egon@bottom>2006-12-19 11:50:52 +0100
committerMichael Vogt <egon@bottom>2006-12-19 11:50:52 +0100
commit75da7640381be141209986156eba32825019add8 (patch)
tree5aa439eeeb55331ca9e8d3245b0c387d8c58ca10 /python/cache.cc
parenta38c71a5197429ccb1703d9b3c2d943be6017f7d (diff)
parent3c393390f10b5ecfb3891fb89f199e2610d9246e (diff)
downloadpython-apt-75da7640381be141209986156eba32825019add8.tar.gz
* merged from mainline
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 174423c2..b6278de0 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)
@@ -815,12 +815,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)