[GRASS-SVN] r56660 - grass/trunk/vector/v.in.ogr
svn_grass at osgeo.org
svn_grass at osgeo.org
Sun Jun 9 13:15:53 PDT 2013
Author: hamish
Date: 2013-06-09 13:15:53 -0700 (Sun, 09 Jun 2013)
New Revision: 56660
Modified:
grass/trunk/vector/v.in.ogr/main.c
Log:
compatibility with C89 compilers
Modified: grass/trunk/vector/v.in.ogr/main.c
===================================================================
--- grass/trunk/vector/v.in.ogr/main.c 2013-06-09 17:01:53 UTC (rev 56659)
+++ grass/trunk/vector/v.in.ogr/main.c 2013-06-09 20:15:53 UTC (rev 56660)
@@ -1369,7 +1369,7 @@
xmax = ymax;
/* double precision ULP */
- min_snap = log2(xmax) - 52;
+ min_snap = log(xmax)/log(2) - 52;
min_snap = pow(2, min_snap);
/* human readable */
min_snap = log10(min_snap);
@@ -1380,7 +1380,7 @@
min_snap = pow(10, min_snap);
/* single precision ULP */
- max_snap = log2(xmax) - 23;
+ max_snap = log(xmax)/log(2) - 23;
max_snap = pow(2, max_snap);
/* human readable */
max_snap = log10(max_snap);
More information about the grass-commit
mailing list