Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit 2dde01c

Browse files
committed
Use ssize_t where signed results can happen
Noted by Alexander Korotkov
1 parent 30a6f98 commit 2dde01c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/bin/pg_basebackup/walmethods.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -432,7 +432,7 @@ tar_write_padding_data(TarMethodFile * f, size_t bytes)
432432
{
433433
size_t bytestowrite = bytesleft > XLOG_BLCKSZ ? XLOG_BLCKSZ : bytesleft;
434434

435-
size_t r = tar_write(f, zerobuf, bytestowrite);
435+
ssize_t r = tar_write(f, zerobuf, bytestowrite);
436436

437437
if (r < 0)
438438
return false;

0 commit comments

Comments
 (0)