Skip to content

Commit 8bd064f

Browse files
committed
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.
1 parent 811b6e3 commit 8bd064f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/backend/access/transam/twophase.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1295,7 +1295,7 @@ ReadTwoPhaseFile(TransactionId xid, bool give_warnings)
12951295
else
12961296
ereport(WARNING,
12971297
(errmsg("could not read file \"%s\": read %d of %zu",
1298-
path, r, stat.st_size)));
1298+
path, r, (Size) stat.st_size)));
12991299
}
13001300
pfree(buf);
13011301
return NULL;

0 commit comments

Comments
 (0)