[GRASS-SVN] r56662 - grass/branches/develbranch_6/vector/v.in.ogr

svn_grass at osgeo.org svn_grass at osgeo.org
Sun Jun 9 22:24:21 PDT 2013


Author: hamish
Date: 2013-06-09 22:24:21 -0700 (Sun, 09 Jun 2013)
New Revision: 56662

Modified:
   grass/branches/develbranch_6/vector/v.in.ogr/main.c
Log:
compatibility with C89 compilers (merge from trunk)

Modified: grass/branches/develbranch_6/vector/v.in.ogr/main.c
===================================================================
--- grass/branches/develbranch_6/vector/v.in.ogr/main.c	2013-06-10 04:41:58 UTC (rev 56661)
+++ grass/branches/develbranch_6/vector/v.in.ogr/main.c	2013-06-10 05:24:21 UTC (rev 56662)
@@ -1205,7 +1205,7 @@
 	    if (xmax < ymax)
 		xmax = ymax;
 
-	    new_snap = log2(xmax) - 52;
+	    new_snap = log(xmax)/log(2) - 52;
 	    new_snap = pow(2, new_snap);
 	    new_snap = log10(new_snap);
 	    if (new_snap < 0)



More information about the grass-commit mailing list