mirror of
https://github.com/psycopg/psycopg2.git
synced 2025-01-31 17:34:08 +03:00
Fixed mismatched types in debug print
This commit is contained in:
parent
44219bf366
commit
79df47a146
|
@ -383,7 +383,7 @@ lobject_seek(lobjectObject *self, long pos, int whence)
|
||||||
char *error = NULL;
|
char *error = NULL;
|
||||||
long where;
|
long where;
|
||||||
|
|
||||||
Dprintf("lobject_seek: fd = %d, pos = %Ld, whence = %d",
|
Dprintf("lobject_seek: fd = %d, pos = %ld, whence = %d",
|
||||||
self->fd, pos, whence);
|
self->fd, pos, whence);
|
||||||
|
|
||||||
Py_BEGIN_ALLOW_THREADS;
|
Py_BEGIN_ALLOW_THREADS;
|
||||||
|
@ -398,7 +398,7 @@ lobject_seek(lobjectObject *self, long pos, int whence)
|
||||||
#else
|
#else
|
||||||
where = (long)lo_lseek(self->conn->pgconn, self->fd, (int)pos, whence);
|
where = (long)lo_lseek(self->conn->pgconn, self->fd, (int)pos, whence);
|
||||||
#endif
|
#endif
|
||||||
Dprintf("lobject_seek: where = %Ld", where);
|
Dprintf("lobject_seek: where = %ld", where);
|
||||||
if (where < 0)
|
if (where < 0)
|
||||||
collect_error(self->conn, &error);
|
collect_error(self->conn, &error);
|
||||||
|
|
||||||
|
@ -433,7 +433,7 @@ lobject_tell(lobjectObject *self)
|
||||||
#else
|
#else
|
||||||
where = (long)lo_tell(self->conn->pgconn, self->fd);
|
where = (long)lo_tell(self->conn->pgconn, self->fd);
|
||||||
#endif
|
#endif
|
||||||
Dprintf("lobject_tell: where = %Ld", where);
|
Dprintf("lobject_tell: where = %ld", where);
|
||||||
if (where < 0)
|
if (where < 0)
|
||||||
collect_error(self->conn, &error);
|
collect_error(self->conn, &error);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user