]> granicus.if.org Git - postgis/commitdiff
Fixed evaluation of two floating point numbers in RASTER_getRotation. Fixes one...
authorBborie Park <bkpark at ucdavis.edu>
Tue, 31 Jan 2012 14:50:39 +0000 (14:50 +0000)
committerBborie Park <bkpark at ucdavis.edu>
Tue, 31 Jan 2012 14:50:39 +0000 (14:50 +0000)
git-svn-id: http://svn.osgeo.org/postgis/trunk@8974 b70326c6-7e19-0410-871a-916f4a2858ee

raster/rt_pg/rt_pg.c

index a4294e49b9ad78dc739897681d4521ed67d504c1..6f7cb3ea3c04e93d4f45c7e6e91946e29ea297ee 100644 (file)
@@ -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);
     }