1
0
mirror of https://github.com/postgres/postgres.git synced 2025-05-18 17:41:14 +03:00

In BufTagGetForkNum, cast to the correct type.

Another defect in 05d4cbf9b6ba708858984b01ca0fc56d59d4ec7c.

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

View File

@ -137,7 +137,7 @@ BufTagGetForkNum(const BufferTag *tag)
StaticAssertStmt(MAX_FORKNUM <= INT8_MAX, StaticAssertStmt(MAX_FORKNUM <= INT8_MAX,
"MAX_FORKNUM can't be greater than 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; return ret;
} }