Use correct conversion format for python strpool id's

- We need an unsigned int, not unsigned long. Funnily enough "k"
  worked with gcc -O0 and -O1 but blows up when built with -O2.
This commit is contained in:
Panu Matilainen 2013-12-20 15:11:56 +02:00
parent d5e4ef4d05
commit 209cd9f04a
1 changed files with 1 additions and 1 deletions

View File

@ -40,7 +40,7 @@ static PyObject *strpool_id2str(rpmstrPoolObject *s, PyObject *item)
PyObject *ret = NULL;
rpmsid id = 0;
if (PyArg_Parse(item, "k", &id)) {
if (PyArg_Parse(item, "I", &id)) {
const char *str = rpmstrPoolStr(s->pool, id);
if (str)