From: Paul Ramsey Date: Wed, 14 Jan 2004 01:52:53 +0000 (+0000) Subject: Fix solaris alignment problem in transformations. X-Git-Tag: pgis_0_8_2~135 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=f64f7949eac4eb52451a5a5e19c149099e90c401;p=postgis Fix solaris alignment problem in transformations. git-svn-id: http://svn.osgeo.org/postgis/trunk@424 b70326c6-7e19-0410-871a-916f4a2858ee --- diff --git a/postgis_transform.c b/postgis_transform.c index 749415e30..684307e2c 100644 --- a/postgis_transform.c +++ b/postgis_transform.c @@ -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);