From: Magnus Hagander Date: Mon, 24 Oct 2016 18:10:18 +0000 (+0200) Subject: Use ssize_t where signed results can happen X-Git-Tag: REL_10_BETA1~1514 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=2dde01ccbfb4c53c7edd28a6836ba47303fea0ba;p=postgresql Use ssize_t where signed results can happen Noted by Alexander Korotkov --- diff --git a/src/bin/pg_basebackup/walmethods.c b/src/bin/pg_basebackup/walmethods.c index d1dc046c97..b0b3d435c3 100644 --- a/src/bin/pg_basebackup/walmethods.c +++ b/src/bin/pg_basebackup/walmethods.c @@ -432,7 +432,7 @@ tar_write_padding_data(TarMethodFile * f, size_t bytes) { size_t bytestowrite = bytesleft > XLOG_BLCKSZ ? XLOG_BLCKSZ : bytesleft; - size_t r = tar_write(f, zerobuf, bytestowrite); + ssize_t r = tar_write(f, zerobuf, bytestowrite); if (r < 0) return false;