1
0
mirror of https://github.com/postgres/postgres.git synced 2025-07-03 20:02:46 +03:00

Add casts to suppress compiler warnings observed on Darwin platform

(surprised no one has reported these yet...)
This commit is contained in:
Tom Lane
2001-11-08 04:05:13 +00:00
parent c6e25ed1af
commit 64af43a15f
4 changed files with 19 additions and 13 deletions

View File

@ -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 */