Skip to content

Commit baa00e1

Browse files
committed
pathman: fixed an alignment bug on sparc9
1 parent 175b0c8 commit baa00e1

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

contrib/pg_pathman/dsm_array.c

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,13 @@ typedef struct DsmConfig
2828

2929
static DsmConfig *dsm_cfg = NULL;
3030

31-
typedef int BlockHeader;
31+
/*
32+
* Block header
33+
*
34+
* Its size must be 4 bytes for 32bit and 8 bytes for 64bit. Otherwise it could
35+
* screw up an alignment (for example on Sparc9)
36+
*/
37+
typedef uintptr_t BlockHeader;
3238
typedef BlockHeader* BlockHeaderPtr;
3339

3440
#define FREE_BIT 0x80000000

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy