From 2dde01ccbfb4c53c7edd28a6836ba47303fea0ba Mon Sep 17 00:00:00 2001 From: Magnus Hagander Date: Mon, 24 Oct 2016 20:10:18 +0200 Subject: [PATCH] Use ssize_t where signed results can happen Noted by Alexander Korotkov --- src/bin/pg_basebackup/walmethods.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- 2.40.0