From: Sandro Santilli Date: Fri, 7 Jan 2005 10:13:52 +0000 (+0000) Subject: fixed misplaced declaration after body start X-Git-Tag: pgis_1_0_0RC1~59 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=8b89c4fbe8d7e251761ed794b25043bf54435dbe;p=postgis fixed misplaced declaration after body start git-svn-id: http://svn.osgeo.org/postgis/trunk@1245 b70326c6-7e19-0410-871a-916f4a2858ee --- diff --git a/lwgeom/lwgparse.c b/lwgeom/lwgparse.c index 61d9a4380..11bc66a9e 100644 --- a/lwgeom/lwgparse.c +++ b/lwgeom/lwgparse.c @@ -737,9 +737,10 @@ parse_wkb(const char** b) { int4 type; byte xdr = read_wkb_byte(b); - swap_order=0; int4 localsrid; + swap_order=0; + if ( xdr != getMachineEndian() ) { swap_order=1;