Add type cast to foreach_internal's loop variable.
authorNathan Bossart <[email protected]>
Tue, 15 Oct 2024 21:20:49 +0000 (16:20 -0500)
committerNathan Bossart <[email protected]>
Tue, 15 Oct 2024 21:20:49 +0000 (16:20 -0500)
commitd5ca15ee54bf7faf038a38408e8adec971740966
tree882241f9af7c88df7b6245f225d7ffccae3e918d
parent2453196107de66cff0257feef2ff8585dcf9d924
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