[postgis-commits] svn - r3848 - trunk/liblwgeom
postgis-commits at postgis.refractions.net
postgis-commits at postgis.refractions.net
Tue Mar 10 14:29:14 PDT 2009
Author: mcayland
Date: 2009-03-10 14:29:14 -0700 (Tue, 10 Mar 2009)
New Revision: 3848
Modified:
trunk/liblwgeom/lwgunparse.c
Log:
More MSVC fixes from Mateusz related to ISO C++ vs. C99 variable initialisation.
Modified: trunk/liblwgeom/lwgunparse.c
===================================================================
--- trunk/liblwgeom/lwgunparse.c 2009-03-10 21:05:19 UTC (rev 3847)
+++ trunk/liblwgeom/lwgunparse.c 2009-03-10 21:29:14 UTC (rev 3848)
@@ -308,12 +308,14 @@
int dimcount;
double *first_point;
double *last_point;
+ int cnt;
+ int orig_cnt;
first_point = lwalloc(dims * sizeof(double));
last_point = lwalloc(dims * sizeof(double));
- int cnt = read_int(&geom);
- int orig_cnt = cnt;
+ cnt = read_int(&geom);
+ orig_cnt = cnt;
if ( cnt == 0 ){
write_str(" EMPTY");
}
@@ -827,12 +829,14 @@
int dimcount;
double *first_point;
double *last_point;
+ int cnt;
+ int orig_cnt;
first_point = lwalloc(dims * sizeof(double));
last_point = lwalloc(dims * sizeof(double));
- int cnt = read_int(&geom);
- int orig_cnt = cnt;
+ cnt = read_int(&geom);
+ orig_cnt = cnt;
LWDEBUGF(2, "output_wkb_polygon_ring_collection: %d iterations loop", cnt);
More information about the postgis-commits
mailing list