From: Bborie Park Date: Tue, 31 Jan 2012 14:50:39 +0000 (+0000) Subject: Fixed evaluation of two floating point numbers in RASTER_getRotation. Fixes one... X-Git-Tag: 2.0.0alpha3~25 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=b276b0450c836f146a5609884272a52220a4c583;p=postgis Fixed evaluation of two floating point numbers in RASTER_getRotation. Fixes one of the two regression failures described in #1501. git-svn-id: http://svn.osgeo.org/postgis/trunk@8974 b70326c6-7e19-0410-871a-916f4a2858ee --- diff --git a/raster/rt_pg/rt_pg.c b/raster/rt_pg/rt_pg.c index a4294e49b..6f7cb3ea3 100644 --- a/raster/rt_pg/rt_pg.c +++ b/raster/rt_pg/rt_pg.c @@ -1586,7 +1586,7 @@ Datum RASTER_getRotation(PG_FUNCTION_ARGS) rt_raster_destroy(raster); - if (xrot == yrot) { + if (FLT_EQ(xrot, yrot)) { PG_RETURN_FLOAT8(xrot); }