Really return a 64-bits value in get_last_id()
This commit is contained in:
parent
8e50165f6c
commit
bf415e7ca4
|
@ -99,7 +99,7 @@ static PyObject * _libdatabase_database_get_last_id(PyObject * self,
|
||||||
PyObject * args)
|
PyObject * args)
|
||||||
{
|
{
|
||||||
Database * database;
|
Database * database;
|
||||||
int ret;
|
long long ret;
|
||||||
|
|
||||||
if((database = PyCapsule_GetPointer(self, _libdatabase_database_name))
|
if((database = PyCapsule_GetPointer(self, _libdatabase_database_name))
|
||||||
== NULL)
|
== NULL)
|
||||||
|
@ -107,7 +107,7 @@ static PyObject * _libdatabase_database_get_last_id(PyObject * self,
|
||||||
if(!PyArg_ParseTuple(args, ""))
|
if(!PyArg_ParseTuple(args, ""))
|
||||||
return NULL;
|
return NULL;
|
||||||
ret = database_get_last_id(database);
|
ret = database_get_last_id(database);
|
||||||
return Py_BuildValue("i", ret);
|
return Py_BuildValue("L", ret);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user