From eda8c46629bf04ee92d86ec9dae653a01c1c4ed9 Mon Sep 17 00:00:00 2001 From: Sandro Santilli Date: Thu, 30 Dec 2004 10:21:57 +0000 Subject: [PATCH] removed useless memory copies in ndims(geom) git-svn-id: http://svn.osgeo.org/postgis/trunk@1188 b70326c6-7e19-0410-871a-916f4a2858ee --- lwgeom/lwgeom_functions_basic.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lwgeom/lwgeom_functions_basic.c b/lwgeom/lwgeom_functions_basic.c index 81b4dc309..49cd2a6eb 100644 --- a/lwgeom/lwgeom_functions_basic.c +++ b/lwgeom/lwgeom_functions_basic.c @@ -2370,7 +2370,7 @@ Datum LWGEOM_noop(PG_FUNCTION_ARGS) LWGEOM *lwgeom; size_t size, retsize; - in = (PG_LWGEOM *)PG_DETOAST_DATUM_COPY(PG_GETARG_DATUM(0)); + in = (PG_LWGEOM *)PG_DETOAST_DATUM(PG_GETARG_DATUM(0)); lwgeom = lwgeom_deserialize(SERIALIZED_FORM(in)); @@ -2423,7 +2423,7 @@ Datum LWGEOM_ndims(PG_FUNCTION_ARGS) PG_LWGEOM *in; int ret; - in = (PG_LWGEOM *)PG_DETOAST_DATUM_COPY(PG_GETARG_DATUM(0)); + in = (PG_LWGEOM *)PG_DETOAST_DATUM(PG_GETARG_DATUM(0)); ret = (TYPE_NDIMS(in->type)); PG_RETURN_INT16(ret); } -- 2.40.0