summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniele Varrazzo <daniele.varrazzo@gmail.com>2017-02-04 02:32:26 +0000
committerDaniele Varrazzo <daniele.varrazzo@gmail.com>2017-02-05 12:06:55 +0100
commit30a833f57a3f3a19b2e478a35b9effaf64a43fbc (patch)
tree9defc6710c684938faba9a725232731d35ba9b70
parent9448576ba612622390a3dfcf1c84398f276b861b (diff)
downloadpsycopg2-30a833f57a3f3a19b2e478a35b9effaf64a43fbc.tar.gz
Dropped compiler warning in debug mode
-rw-r--r--psycopg/lobject_int.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/psycopg/lobject_int.c b/psycopg/lobject_int.c
index b954a76..b39a7b4 100644
--- a/psycopg/lobject_int.c
+++ b/psycopg/lobject_int.c
@@ -383,7 +383,7 @@ lobject_seek(lobjectObject *self, Py_ssize_t pos, int whence)
char *error = NULL;
Py_ssize_t where;
- Dprintf("lobject_seek: fd = %d, pos = %ld, whence = %d",
+ Dprintf("lobject_seek: fd = %d, pos = " FORMAT_CODE_PY_SSIZE_T ", whence = %d",
self->fd, pos, whence);
Py_BEGIN_ALLOW_THREADS;
@@ -398,7 +398,7 @@ lobject_seek(lobjectObject *self, Py_ssize_t pos, int whence)
#else
where = (Py_ssize_t)lo_lseek(self->conn->pgconn, self->fd, (int)pos, whence);
#endif
- Dprintf("lobject_seek: where = %ld", where);
+ Dprintf("lobject_seek: where = " FORMAT_CODE_PY_SSIZE_T, where);
if (where < 0)
collect_error(self->conn, &error);
@@ -433,7 +433,7 @@ lobject_tell(lobjectObject *self)
#else
where = (Py_ssize_t)lo_tell(self->conn->pgconn, self->fd);
#endif
- Dprintf("lobject_tell: where = %ld", where);
+ Dprintf("lobject_tell: where = " FORMAT_CODE_PY_SSIZE_T, where);
if (where < 0)
collect_error(self->conn, &error);