Add type cast to foreach_internal's loop variable.
authorNathan Bossart <nathan@postgresql.org>
Tue, 15 Oct 2024 21:20:49 +0000 (16:20 -0500)
committerNathan Bossart <nathan@postgresql.org>
Tue, 15 Oct 2024 21:20:49 +0000 (16:20 -0500)
commit8aaca078510436213be5416a7227115ec83b68a3
treeaca85b002ba10e986354b7911c1f919e36bd30da
parent8a6170860c83d3f44b7d97193a2c23539c24f76d
Add type cast to foreach_internal's loop variable.

C++ requires explicitly casting void pointers to the appropriate
pointer type, which means the foreach_ptr macro cannot be used in
C++ code without this change.

Author: Jelte Fennema-Nio
Reviewed-by: Bruce Momjian
Discussion: https://postgr.es/m/CAGECzQSYG3QfHrc-rOk2KbnB9iJOd7Qu-Xii1s-GTA%3D3JFt49Q%40mail.gmail.com
Backpatch-through: 17
src/include/nodes/pg_list.h