From b276b0450c836f146a5609884272a52220a4c583 Mon Sep 17 00:00:00 2001 From: Bborie Park Date: Tue, 31 Jan 2012 14:50:39 +0000 Subject: [PATCH] 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 --- raster/rt_pg/rt_pg.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); } -- 2.40.0