From: Michael Paquier Date: Wed, 18 Jul 2018 00:11:34 +0000 (+0900) Subject: Fix casting in error message for two-phase file X-Git-Tag: REL_12_BETA1~1861 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=8bd064f0c7d61c40a8a1179e9d24997fc0a20689;p=postgresql 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. --- diff --git a/src/backend/access/transam/twophase.c b/src/backend/access/transam/twophase.c index 0c99b33664..306861bb79 100644 --- a/src/backend/access/transam/twophase.c +++ b/src/backend/access/transam/twophase.c @@ -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;