mirror of
https://github.com/postgres/postgres.git
synced 2025-12-09 02:08:45 +03:00
Remove no longer needed casts to Pointer
These casts used to be required when Pointer was char *, but now it's
void * (commit 1b2bb5077e), so they are not needed anymore.
Reviewed-by: Chao Li <li.evan.chao@gmail.com>
Reviewed-by: Bertrand Drouvot <bertranddrouvot.pg@gmail.com>
Discussion: https://www.postgresql.org/message-id/4154950a-47ae-4223-bd01-1235cc50e933%40eisentraut.org
This commit is contained in:
@@ -49,7 +49,7 @@ typedef struct
|
||||
*/
|
||||
#define GBT_FREE_IF_COPY(ptr1, ptr2) \
|
||||
do { \
|
||||
if ((Pointer) (ptr1) != DatumGetPointer(ptr2)) \
|
||||
if ((ptr1) != DatumGetPointer(ptr2)) \
|
||||
pfree(ptr1); \
|
||||
} while (0)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user