Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitbaa00e1

Browse files
committed
pathman: fixed an alignment bug on sparc9
1 parent175b0c8 commitbaa00e1

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
staticDsmConfig*dsm_cfg=NULL;
3030

31-
typedefintBlockHeader;
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+
typedefuintptr_tBlockHeader;
3238
typedefBlockHeader*BlockHeaderPtr;
3339

3440
#defineFREE_BIT 0x80000000

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp