From 64af43a15f97162aa4b5a4cbdaa10f3721adf996 Mon Sep 17 00:00:00 2001 From: Tom Lane Date: Thu, 8 Nov 2001 04:05:13 +0000 Subject: Add casts to suppress compiler warnings observed on Darwin platform (surprised no one has reported these yet...) --- src/interfaces/libpq/fe-misc.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/interfaces/libpq/fe-misc.c') diff --git a/src/interfaces/libpq/fe-misc.c b/src/interfaces/libpq/fe-misc.c index 66c142ce172..30d1dbced84 100644 --- a/src/interfaces/libpq/fe-misc.c +++ b/src/interfaces/libpq/fe-misc.c @@ -25,7 +25,7 @@ * * * IDENTIFICATION - * $Header: /cvsroot/pgsql/src/interfaces/libpq/fe-misc.c,v 1.60 2001/11/05 17:46:37 momjian Exp $ + * $Header: /cvsroot/pgsql/src/interfaces/libpq/fe-misc.c,v 1.61 2001/11/08 04:05:13 tgl Exp $ * *------------------------------------------------------------------------- */ @@ -128,7 +128,8 @@ pqPutBytes(const char *s, size_t nbytes, PGconn *conn) { printfPQExpBuffer(&conn->errorMessage, libpq_gettext("could not flush enough data (space available: %d, space needed %d)\n"), - Max(conn->outBufSize - conn->outCount, 0), nbytes); + (int) Max(conn->outBufSize - conn->outCount, 0), + (int) nbytes); return EOF; } /* fixup avail for while loop */ -- cgit v1.2.3