mirror of
https://github.com/postgres/postgres.git
synced 2026-01-27 21:43:08 +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:
@@ -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