summaryrefslogtreecommitdiff
path: root/src/backend/access/common/heaptuple.c
diff options
context:
space:
mode:
authorBruce Momjian <bruce@momjian.us>1999-07-19 07:07:29 +0000
committerBruce Momjian <bruce@momjian.us>1999-07-19 07:07:29 +0000
commitfaf7d7817456e3ae23eb882a99283581bae86112 (patch)
treef35a7e143115168680f37e62ed8893cf78b713a0 /src/backend/access/common/heaptuple.c
parente259780b1393184cc9dd83b2ee5d4c1eb10a2eaa (diff)
downloadpostgresql-faf7d7817456e3ae23eb882a99283581bae86112.tar.gz
Install new alignment code to use MAXALIGN rather than DOUBLEALIGN where
approproate.
Diffstat (limited to 'src/backend/access/common/heaptuple.c')
-rw-r--r--src/backend/access/common/heaptuple.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/backend/access/common/heaptuple.c b/src/backend/access/common/heaptuple.c
index 009f8abdd1..a88d688559 100644
--- a/src/backend/access/common/heaptuple.c
+++ b/src/backend/access/common/heaptuple.c
@@ -8,7 +8,7 @@
*
*
* IDENTIFICATION
- * $Header: /cvsroot/pgsql/src/backend/access/common/heaptuple.c,v 1.57 1999/07/17 20:16:35 momjian Exp $
+ * $Header: /cvsroot/pgsql/src/backend/access/common/heaptuple.c,v 1.58 1999/07/19 07:07:15 momjian Exp $
*
* NOTES
* The old interface functions have been converted to macros
@@ -677,7 +677,7 @@ heap_formtuple(TupleDesc tupleDescriptor,
len += bitmaplen;
}
- hoff = len = DOUBLEALIGN(len); /* be conservative here */
+ hoff = len = MAXALIGN(len); /* be conservative here */
len += ComputeDataSize(tupleDescriptor, value, nulls);
@@ -811,7 +811,7 @@ heap_addheader(uint32 natts, /* max domain index */
len = offsetof(HeapTupleHeaderData, t_bits);
- hoff = len = DOUBLEALIGN(len); /* be conservative */
+ hoff = len = MAXALIGN(len); /* be conservative */
len += structlen;
tuple = (HeapTuple) palloc(HEAPTUPLESIZE + len);
td = tuple->t_data = (HeapTupleHeader) ((char *) tuple + HEAPTUPLESIZE);