From 5aa418465e75ad5dc2a0a44f6c89d1bd101b40d4 Mon Sep 17 00:00:00 2001 From: Sandro Santilli Date: Fri, 22 Jul 2005 19:15:28 +0000 Subject: [PATCH] Fixed bug in {get,pop}{int,double} for 64bit archs git-svn-id: http://svn.osgeo.org/postgis/trunk@1825 b70326c6-7e19-0410-871a-916f4a2858ee --- CHANGES | 1 + loader/pgsql2shp.c | 9 ++++++--- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/CHANGES b/CHANGES index 9cbb5fb89..b21dec2d9 100644 --- a/CHANGES +++ b/CHANGES @@ -17,6 +17,7 @@ PostGIS 1.1.0CVS PostGIS 1.0.3 ????/??/?? + - Bugfix in dumper on 64bit machines - Bugfix in dumper handling of user-defined queries - Bugfix in create_undef.pl script - Small performance improvement in canonical input function diff --git a/loader/pgsql2shp.c b/loader/pgsql2shp.c index 3f059109e..3cdecb053 100644 --- a/loader/pgsql2shp.c +++ b/loader/pgsql2shp.c @@ -3004,14 +3004,14 @@ byte popbyte(byte **c) { } uint32 popint(byte **c) { - uint32 i; + uint32 i=0; memcpy(&i, *c, 4); *c+=4; return i; } uint32 getint(byte *c) { - uint32 i; + uint32 i=0; memcpy(&i, c, 4); return i; } @@ -3021,7 +3021,7 @@ void skipint(byte **c) { } double popdouble(byte **c) { - double d; + double d=0.0; memcpy(&d, *c, 8); *c+=8; return d; @@ -3122,6 +3122,9 @@ create_usrquerytable(void) /********************************************************************** * $Log$ + * Revision 1.78 2005/07/22 19:15:28 strk + * Fixed bug in {get,pop}{int,double} for 64bit archs + * * Revision 1.77 2005/07/12 16:19:35 strk * Fixed bug in user query handling, reported by Andrew Seales * -- 2.50.1