Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit 0aaa7cf

Browse files
committed
In BufTagGetForkNum, cast to the correct type.
Another defect in 05d4cbf. Per CI, via Justin Pryzby. Discussion: http://postgr.es/m/20220927200712.GH6256@telsasoft.com
1 parent 99164b7 commit 0aaa7cf

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
return ret;
142142
}
143143

0 commit comments

Comments
 (0)