projects
/
users
/
c2main
/
postgres.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
99164b7
)
In BufTagGetForkNum, cast to the correct type.
author
Robert Haas
<rhaas@postgresql.org>
Tue, 27 Sep 2022 20:12:43 +0000
(16:12 -0400)
committer
Robert Haas
<rhaas@postgresql.org>
Tue, 27 Sep 2022 20:15:57 +0000
(16:15 -0400)
Another defect in
05d4cbf9b6ba708858984b01ca0fc56d59d4ec7c
.
Per CI, via Justin Pryzby.
Discussion: http://postgr.es/m/
20220927200712
.GH6256@telsasoft.com
src/include/storage/buf_internals.h
patch
|
blob
|
blame
|
history
diff --git
a/src/include/storage/buf_internals.h
b/src/include/storage/buf_internals.h
index c3417b28ba91835d7ffd1cd5a2994c9177edd1f2..d4dc9eb3429d1f9e993d48e31c7a801df2d4c024 100644
(file)
--- a/
src/include/storage/buf_internals.h
+++ b/
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;
}