]> granicus.if.org Git - postgis/commitdiff
minor changes for solaris
authorDavid Blasby <dblasby@gmail.com>
Tue, 27 Apr 2004 23:12:11 +0000 (23:12 +0000)
committerDavid Blasby <dblasby@gmail.com>
Tue, 27 Apr 2004 23:12:11 +0000 (23:12 +0000)
git-svn-id: http://svn.osgeo.org/postgis/trunk@518 b70326c6-7e19-0410-871a-916f4a2858ee

lwgeom/lwgeom_inout.c
lwgeom/wktunparse.c

index 7a975ccfede72db0956e8c5267ccd68a474c1856..fbee130ee242cb368843987a0c4242637da79717 100644 (file)
@@ -570,7 +570,7 @@ Datum LWGEOM_addBBOX(PG_FUNCTION_ARGS)
 
 void elog_ERROR(const char* string)
 {
-       elog(ERROR,string);
+       elog(NOTICE,string);
 }
 
 void *palloc_fn(size_t size)
index d8ef0843c9aa4e91a7fe29e1834cb8bc3323b948..e0e189eef924310291bf49a0f5209fb769555693 100644 (file)
@@ -107,7 +107,11 @@ double read_double(byte** geom){
                return ret-180.0;
        }
        else{
-               double ret = *((double*)*geom);
+               //double ret = *((double*)*geom);
+               double ret;
+
+               memcpy(&ret, *geom, 8);
+
                (*geom)+=8;
                return ret;
        }
@@ -159,7 +163,7 @@ byte* output_wkt(byte* geom, int supress){
 
        unsigned type=*geom++;
        dims = ((type & 0x30) >> 4)+2;
-       
+
        //Skip the bounding box if there is one
        if ( type & 0x80 ){
                geom+=16;