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

Commit0aaa7cf

Browse files
committed
In BufTagGetForkNum, cast to the correct type.
Another defect in05d4cbf.Per CI, via Justin Pryzby.Discussion:http://postgr.es/m/20220927200712.GH6256@telsasoft.com
1 parent99164b7 commit0aaa7cf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

‎src/include/storage/buf_internals.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@ BufTagGetForkNum(const BufferTag *tag)
137137
StaticAssertStmt(MAX_FORKNUM <=INT8_MAX,
138138
"MAX_FORKNUM can't be greater than INT8_MAX");
139139

140-
ret= (int8) (tag->relForkDetails[0] >>BUFTAG_RELNUM_HIGH_BITS);
140+
ret= (ForkNumber) (tag->relForkDetails[0] >>BUFTAG_RELNUM_HIGH_BITS);
141141
returnret;
142142
}
143143

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp