mirror of
https://git.postgresql.org/git/postgresql.git
synced 2026-02-23 06:47:14 +08:00
Remove no longer needed casts to Pointer
These casts used to be required when Pointer was char *, but now it's void * (commit 1b2bb5077e9), 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:
@ -259,7 +259,7 @@ extern struct varlena *pg_detoast_datum_packed(struct varlena *datum);
|
||||
*/
|
||||
#define PG_FREE_IF_COPY(ptr,n) \
|
||||
do { \
|
||||
if ((Pointer) (ptr) != PG_GETARG_POINTER(n)) \
|
||||
if ((ptr) != PG_GETARG_POINTER(n)) \
|
||||
pfree(ptr); \
|
||||
} while (0)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user