From 5a75d693a3e10f2a9e914c8c8f9c0971745d7f80 Mon Sep 17 00:00:00 2001 From: Daniele Varrazzo Date: Wed, 7 Apr 2010 18:12:24 +0100 Subject: [PATCH] Dropped warnings when compiling on Python 2.5 --- psycopg/lobject_int.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/psycopg/lobject_int.c b/psycopg/lobject_int.c index 0b38325a..91de1cf2 100644 --- a/psycopg/lobject_int.c +++ b/psycopg/lobject_int.c @@ -205,7 +205,7 @@ lobject_write(lobjectObject *self, const char *buf, size_t len) PGresult *pgres = NULL; char *error = NULL; - Dprintf("lobject_writing: fd = %d, len = %d", + Dprintf("lobject_writing: fd = %d, len = " FORMAT_CODE_PY_SSIZE_T, self->fd, len); Py_BEGIN_ALLOW_THREADS; @@ -342,7 +342,7 @@ lobject_truncate(lobjectObject *self, size_t len) PGresult *pgres = NULL; char *error = NULL; - Dprintf("lobject_truncate: fd = %d, len = %d", + Dprintf("lobject_truncate: fd = %d, len = " FORMAT_CODE_PY_SSIZE_T, self->fd, len); Py_BEGIN_ALLOW_THREADS;