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
pull/104/head
Robert Haas 3 years ago
parent 99164b7ea6
commit 0aaa7cf698
  1. 2
      src/include/storage/buf_internals.h

@ -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;
}

Loading…
Cancel
Save