From 9863637f309e1e89523007c40e9dcdde69f60bc0 Mon Sep 17 00:00:00 2001 From: Daniele Varrazzo Date: Sat, 4 Feb 2017 02:32:26 +0000 Subject: [PATCH] Dropped compiler warning in debug mode --- psycopg/lobject_int.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/psycopg/lobject_int.c b/psycopg/lobject_int.c index b954a76b..b39a7b40 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);