From 8bd064f0c7d61c40a8a1179e9d24997fc0a20689 Mon Sep 17 00:00:00 2001 From: Michael Paquier Date: Wed, 18 Jul 2018 09:11:34 +0900 Subject: [PATCH] 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. --- src/backend/access/transam/twophase.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- 2.40.0