]> granicus.if.org Git - postgis/commitdiff
reduced function calls in lwcollection_serialize_size
authorSandro Santilli <strk@keybit.net>
Tue, 14 Dec 2004 09:37:47 +0000 (09:37 +0000)
committerSandro Santilli <strk@keybit.net>
Tue, 14 Dec 2004 09:37:47 +0000 (09:37 +0000)
git-svn-id: http://svn.osgeo.org/postgis/trunk@1141 b70326c6-7e19-0410-871a-916f4a2858ee

lwgeom/lwcollection.c

index 6d03974fc5d48b8699022e17f7d8ba14aa74a005..6185eaa27566b0a520812a2de07e4a1b22fba168 100644 (file)
@@ -123,7 +123,7 @@ lwcollection_serialize_size(LWCOLLECTION *col)
 
        for (i=0; i<col->ngeoms; i++)
        {
-               size += lwgeom_serialize_size(lwcollection_getsubgeom(col, i));
+               size += lwgeom_serialize_size(col->geoms[i]);
 #ifdef DEBUG_CALLS
                lwnotice("lwcollection_serialize_size[%p]: with geom%d: %d", col, i, size);
 #endif