mirror of
https://github.com/postgres/postgres.git
synced 2025-07-30 11:03:19 +03:00
Fix casting in error message for two-phase file
This error from from 811b6e3
, which causes compilation warnings with OSX
10.3 and clang.
Reported by Tom Lane, via buildfarm member longfin.
This commit is contained in:
@ -1295,7 +1295,7 @@ ReadTwoPhaseFile(TransactionId xid, bool give_warnings)
|
||||
else
|
||||
ereport(WARNING,
|
||||
(errmsg("could not read file \"%s\": read %d of %zu",
|
||||
path, r, stat.st_size)));
|
||||
path, r, (Size) stat.st_size)));
|
||||
}
|
||||
pfree(buf);
|
||||
return NULL;
|
||||
|
Reference in New Issue
Block a user