Skip to content

Commit 8611d91

Browse files
committed
Fixed build on Python 2.5
1 parent 244f233 commit 8611d91

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

psycopg/lobject_type.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -197,7 +197,7 @@ psyco_lobj_seek(lobjectObject *self, PyObject *args)
197197
if ((pos = lobject_seek(self, offset, whence)) < 0)
198198
return NULL;
199199

200-
return PyLong_FromSsize_t(pos);
200+
return PyInt_FromSsize_t(pos);
201201
}
202202

203203
/* tell method - tell current position in the lobject */
@@ -217,7 +217,7 @@ psyco_lobj_tell(lobjectObject *self, PyObject *args)
217217
if ((pos = lobject_tell(self)) < 0)
218218
return NULL;
219219

220-
return PyLong_FromSsize_t(pos);
220+
return PyInt_FromSsize_t(pos);
221221
}
222222

223223
/* unlink method - unlink (destroy) the lobject */

0 commit comments

Comments
 (0)