]> granicus.if.org Git - postgis/commitdiff
Fixed bug in {get,pop}{int,double} for 64bit archs
authorSandro Santilli <strk@keybit.net>
Fri, 22 Jul 2005 19:15:28 +0000 (19:15 +0000)
committerSandro Santilli <strk@keybit.net>
Fri, 22 Jul 2005 19:15:28 +0000 (19:15 +0000)
git-svn-id: http://svn.osgeo.org/postgis/trunk@1825 b70326c6-7e19-0410-871a-916f4a2858ee

CHANGES
loader/pgsql2shp.c

diff --git a/CHANGES b/CHANGES
index 9cbb5fb8987f0c66ad316a8277f1f7a6138c0535..b21dec2d928bb1b7325f9fb6125604c6058a639e 100644 (file)
--- 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
index 3f059109ee4de2e2bc8bde8df02c623f3352efa0..3cdecb0532a7d5cc217741cec6cbd992eee4cd76 100644 (file)
@@ -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
  *