mirror of
https://github.com/psycopg/psycopg2.git
synced 2025-02-07 21:00:33 +03:00
Fixed build on Python 2.5
This commit is contained in:
parent
b3c07fddb8
commit
e707c3f657
|
@ -197,7 +197,7 @@ psyco_lobj_seek(lobjectObject *self, PyObject *args)
|
||||||
if ((pos = lobject_seek(self, offset, whence)) < 0)
|
if ((pos = lobject_seek(self, offset, whence)) < 0)
|
||||||
return NULL;
|
return NULL;
|
||||||
|
|
||||||
return PyLong_FromSsize_t(pos);
|
return PyInt_FromSsize_t(pos);
|
||||||
}
|
}
|
||||||
|
|
||||||
/* tell method - tell current position in the lobject */
|
/* tell method - tell current position in the lobject */
|
||||||
|
@ -217,7 +217,7 @@ psyco_lobj_tell(lobjectObject *self, PyObject *args)
|
||||||
if ((pos = lobject_tell(self)) < 0)
|
if ((pos = lobject_tell(self)) < 0)
|
||||||
return NULL;
|
return NULL;
|
||||||
|
|
||||||
return PyLong_FromSsize_t(pos);
|
return PyInt_FromSsize_t(pos);
|
||||||
}
|
}
|
||||||
|
|
||||||
/* unlink method - unlink (destroy) the lobject */
|
/* unlink method - unlink (destroy) the lobject */
|
||||||
|
|
Loading…
Reference in New Issue
Block a user