From 22d9e912199dc2436d7a24bbfb82bcd768973020 Mon Sep 17 00:00:00 2001 From: Tom Lane Date: Thu, 25 Oct 2001 20:37:30 +0000 Subject: Fix a couple of places where lack of parenthesization of a cast causes pgindent to make weird formatting decisions. Easiest fix seems to be to put in the extra parens... --- src/backend/access/transam/clog.c | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) (limited to 'src/backend/access/transam/clog.c') diff --git a/src/backend/access/transam/clog.c b/src/backend/access/transam/clog.c index 1436b32aa16..c0149f0cdb6 100644 --- a/src/backend/access/transam/clog.c +++ b/src/backend/access/transam/clog.c @@ -13,7 +13,7 @@ * Portions Copyright (c) 1996-2001, PostgreSQL Global Development Group * Portions Copyright (c) 1994, Regents of the University of California * - * $Header: /cvsroot/pgsql/src/backend/access/transam/clog.c,v 1.5 2001/10/25 05:49:22 momjian Exp $ + * $Header: /cvsroot/pgsql/src/backend/access/transam/clog.c,v 1.6 2001/10/25 20:37:29 tgl Exp $ * *------------------------------------------------------------------------- */ @@ -936,11 +936,9 @@ CLOGPagePrecedes(int page1, int page2) TransactionId xid1; TransactionId xid2; - xid1 = (TransactionId) page1 *CLOG_XACTS_PER_PAGE; - + xid1 = ((TransactionId) page1) * CLOG_XACTS_PER_PAGE; xid1 += FirstNormalTransactionId; - xid2 = (TransactionId) page2 *CLOG_XACTS_PER_PAGE; - + xid2 = ((TransactionId) page2) * CLOG_XACTS_PER_PAGE; xid2 += FirstNormalTransactionId; return TransactionIdPrecedes(xid1, xid2); -- cgit v1.2.3