]> granicus.if.org Git - postgis/commitdiff
fixed var declaration misplacement
authorSandro Santilli <strk@keybit.net>
Fri, 7 Jan 2005 12:09:12 +0000 (12:09 +0000)
committerSandro Santilli <strk@keybit.net>
Fri, 7 Jan 2005 12:09:12 +0000 (12:09 +0000)
git-svn-id: http://svn.osgeo.org/postgis/trunk@1252 b70326c6-7e19-0410-871a-916f4a2858ee

lwgeom/lwgeom_functions_basic.c

index 9350f851862cc331e7b4f447cb0c041ba705be24..c8cdaa72dc406944d27e8f24754757878f8ee576 100644 (file)
@@ -1839,9 +1839,10 @@ Datum LWGEOM_collect_garray(PG_FUNCTION_ARGS)
        for (i=0; i<nelems; i++)
        {
                PG_LWGEOM *geom = (PG_LWGEOM *)(ARR_DATA_PTR(array)+offset);
+               unsigned int intype = TYPE_GETTYPE(geom->type);
+
                offset += INTALIGN(geom->size);
 
-               unsigned int intype = TYPE_GETTYPE(geom->type);
                lwgeoms[i] = lwgeom_deserialize(SERIALIZED_FORM(geom));
 #ifdef DEBUG
        elog(NOTICE, "LWGEOM_collect_garray: geom %d deserialized", i);