diff options
author | Tom Lane <tgl@sss.pgh.pa.us> | 2001-11-08 04:05:13 +0000 |
---|---|---|
committer | Tom Lane <tgl@sss.pgh.pa.us> | 2001-11-08 04:05:13 +0000 |
commit | 64af43a15f97162aa4b5a4cbdaa10f3721adf996 (patch) | |
tree | 3212964a8acb46c32615567f48302ea626fecab9 /src/interfaces/libpq/fe-misc.c | |
parent | c6e25ed1afa75a8fe03ed1b71f522dcbd9f4bb66 (diff) | |
download | postgresql-64af43a15f97162aa4b5a4cbdaa10f3721adf996.tar.gz postgresql-64af43a15f97162aa4b5a4cbdaa10f3721adf996.zip |
Add casts to suppress compiler warnings observed on Darwin platform
(surprised no one has reported these yet...)
Diffstat (limited to 'src/interfaces/libpq/fe-misc.c')
-rw-r--r-- | src/interfaces/libpq/fe-misc.c | 5 |
1 files changed, 3 insertions, 2 deletions
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 */ |