]> granicus.if.org Git - postgis/commitdiff
Fix solaris alignment problem in transformations.
authorPaul Ramsey <pramsey@cleverelephant.ca>
Wed, 14 Jan 2004 01:52:53 +0000 (01:52 +0000)
committerPaul Ramsey <pramsey@cleverelephant.ca>
Wed, 14 Jan 2004 01:52:53 +0000 (01:52 +0000)
git-svn-id: http://svn.osgeo.org/postgis/trunk@424 b70326c6-7e19-0410-871a-916f4a2858ee

postgis_transform.c

index 749415e3092cfa8c74f09a57bc13182b56e9daa5..684307e2c77f3832f133092e1c2dac9a5e7b5778 100644 (file)
@@ -11,6 +11,9 @@
  *
  **********************************************************************
  * $Log$
+ * Revision 1.15  2004/01/14 01:52:53  pramsey
+ * Fix solaris alignment problem in transformations.
+ *
  * Revision 1.14  2003/09/16 20:27:12  dblasby
  * added ability to delete geometries.
  *
@@ -393,6 +396,8 @@ Datum transform_geom(PG_FUNCTION_ARGS)
                                        poly_points  += poly->npoints[i];
                                }
                                poly_pts = (POINT3D *) ( (char *)&(poly->npoints[poly->nrings] )  );
+                               poly_pts = (POINT3D *) MAXALIGN(poly_pts);
+
                                if (input_pj->is_latlong)
                                        to_rad(poly_pts , poly_points);