In BufTagGetForkNum, cast to the correct type.

Another defect in 05d4cbf9b6.

Per CI, via Justin Pryzby.

Discussion: http://postgr.es/m/20220927200712.GH6256@telsasoft.com
This commit is contained in:
Robert Haas 2022-09-27 16:12:43 -04:00
parent 99164b7ea6
commit 0aaa7cf698
1 changed files with 1 additions and 1 deletions

View File

@ -137,7 +137,7 @@ BufTagGetForkNum(const BufferTag *tag)
StaticAssertStmt(MAX_FORKNUM <= INT8_MAX,
"MAX_FORKNUM can't be greater than INT8_MAX");
ret = (int8) (tag->relForkDetails[0] >> BUFTAG_RELNUM_HIGH_BITS);
ret = (ForkNumber) (tag->relForkDetails[0] >> BUFTAG_RELNUM_HIGH_BITS);
return ret;
}