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:
Michael Paquier 2018-07-18 09:11:34 +09:00
parent 811b6e36a9
commit 8bd064f0c7
1 changed files with 1 additions and 1 deletions

View File

@ -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;