Add type cast to foreach_internal's loop variable.

Nathan Bossart <nathan@postgresql.org>

Commit: 8aaca078510436213be5416a7227115ec83b68a3
Author: Nathan Bossart <nathan@postgresql.org>
Date: 2024-10-15T21:20:49Z
Releases: 17.1
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

Files

PathChange+/−
src/include/nodes/pg_list.h modified +1 −1

Discussion