[mapguide-commits] r7135 - sandbox/jng/geos-upgrade/Server/src/UnitTesting
svn_mapguide at osgeo.org
svn_mapguide at osgeo.org
Fri Oct 19 05:53:11 PDT 2012
Author: jng
Date: 2012-10-19 05:53:11 -0700 (Fri, 19 Oct 2012)
New Revision: 7135
Modified:
sandbox/jng/geos-upgrade/Server/src/UnitTesting/TestGeometry.cpp
Log:
Fix Linux build. Use an ACE-insulated version of floor
Modified: sandbox/jng/geos-upgrade/Server/src/UnitTesting/TestGeometry.cpp
===================================================================
--- sandbox/jng/geos-upgrade/Server/src/UnitTesting/TestGeometry.cpp 2012-10-19 12:49:08 UTC (rev 7134)
+++ sandbox/jng/geos-upgrade/Server/src/UnitTesting/TestGeometry.cpp 2012-10-19 12:53:11 UTC (rev 7135)
@@ -2144,7 +2144,7 @@
Ptr<MgMultiGeometry> multiGeometry = CreateMultiGeometry();
area = multiGeometry->GetArea();
//GEOS 3.3.5 does not return *exactly* 23.375, is this a big deal in the grand scheme?
- CPPUNIT_ASSERT((std::floor(area * 1000) / 1000) >= 23.375);
+ CPPUNIT_ASSERT((ACE_OS::floor(area * 1000) / 1000) >= 23.375);
//TEST 13
Ptr<MgCoordinate> coord1 = factory.CreateCoordinateXYZ(-45.0, -45.0, 1.0);
More information about the mapguide-commits
mailing list