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

Commit0ea51ba

Browse files
committed
Fix alignment of stack variable
Declare with union similar to PGAlignedBlock.Report and fix by Andres FreundDiscussion:https://postgr.es/m/20240407190731.izm3mdazednrsiqk%40awork3.anarazel.de
1 parent304b6b1 commit0ea51ba

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

‎src/backend/access/common/tidstore.c

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -303,8 +303,12 @@ void
303303
TidStoreSetBlockOffsets(TidStore*ts,BlockNumberblkno,OffsetNumber*offsets,
304304
intnum_offsets)
305305
{
306-
chardata[MaxBlocktableEntrySize];
307-
BlocktableEntry*page= (BlocktableEntry*)data;
306+
union
307+
{
308+
chardata[MaxBlocktableEntrySize];
309+
BlocktableEntryforce_align_entry;
310+
}data;
311+
BlocktableEntry*page= (BlocktableEntry*)data.data;
308312
bitmapwordword;
309313
intwordnum;
310314
intnext_word_threshold;

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp