[geos-commits] r3559 - branches/3.3/src/operation/buffer

svn_geos at osgeo.org svn_geos at osgeo.org
Fri Jan 6 16:34:49 EST 2012


Author: hobu
Date: 2012-01-06 13:34:49 -0800 (Fri, 06 Jan 2012)
New Revision: 3559

Modified:
   branches/3.3/src/operation/buffer/BufferOp.cpp
Log:
Fix MSVC compilation of ambiguous log() call #506

Modified: branches/3.3/src/operation/buffer/BufferOp.cpp
===================================================================
--- branches/3.3/src/operation/buffer/BufferOp.cpp	2012-01-05 17:01:09 UTC (rev 3558)
+++ branches/3.3/src/operation/buffer/BufferOp.cpp	2012-01-06 21:34:49 UTC (rev 3559)
@@ -94,7 +94,7 @@
   double bufEnvMax = envMax + 2 * expandByDistance;
 
   // the smallest power of 10 greater than the buffer envelope
-  int bufEnvPrecisionDigits = (int) (std::log(bufEnvMax) / std::log(10) + 1.0);
+  int bufEnvPrecisionDigits = (int) (std::log(bufEnvMax) / std::log(10.0) + 1.0);
   int minUnitLog10 = maxPrecisionDigits - bufEnvPrecisionDigits;
 
   double scaleFactor = std::pow(10.0, minUnitLog10);



More information about the geos-commits mailing list