summaryrefslogtreecommitdiff
path: root/python/tag.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/tag.cc
parenta38c71a5197429ccb1703d9b3c2d943be6017f7d (diff)
parent3c393390f10b5ecfb3891fb89f199e2610d9246e (diff)
downloadpython-apt-75da7640381be141209986156eba32825019add8.tar.gz
* merged from mainline
Diffstat (limited to 'python/tag.cc')
-rw-r--r--python/tag.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/python/tag.cc b/python/tag.cc
index 41db059c..d0d862c9 100644
--- a/python/tag.cc
+++ b/python/tag.cc
@@ -68,7 +68,7 @@ void TagFileFree(PyObject *Obj)
Self->Object.~pkgTagFile();
Self->Fd.~FileFd();
Py_DECREF(Self->File);
- PyMem_DEL(Obj);
+ PyObject_DEL(Obj);
}
/*}}}*/
@@ -132,7 +132,7 @@ static PyObject *TagSecMap(PyObject *Self,PyObject *Arg)
}
// len() operation
-static int TagSecLength(PyObject *Self)
+static Py_ssize_t TagSecLength(PyObject *Self)
{
pkgTagSection &Sec = GetCpp<pkgTagSection>(Self);
return Sec.Count();