mirror of
https://github.com/postgres/postgres.git
synced 2025-07-05 07:21:24 +03:00
Use ssize_t where signed results can happen
Noted by Alexander Korotkov
This commit is contained in:
@ -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;
|
||||
|
Reference in New Issue
Block a user