[GRASS-SVN] r38430 - grass/trunk/lib/vector/diglib

svn_grass at osgeo.org svn_grass at osgeo.org
Thu Jul 16 02:09:44 EDT 2009


Author: mmetz
Date: 2009-07-16 02:09:42 -0400 (Thu, 16 Jul 2009)
New Revision: 38430

Modified:
   grass/trunk/lib/vector/diglib/spindex_rw.c
Log:
write sidx with better portability

Modified: grass/trunk/lib/vector/diglib/spindex_rw.c
===================================================================
--- grass/trunk/lib/vector/diglib/spindex_rw.c	2009-07-15 20:42:46 UTC (rev 38429)
+++ grass/trunk/lib/vector/diglib/spindex_rw.c	2009-07-16 06:09:42 UTC (rev 38430)
@@ -600,8 +600,7 @@
 
     /* should be foolproof */
     sidx_nodesize =
-	(int)(2 * sizeof(int) +
-	      MAXCARD * (off_t_size + NUMSIDES * sizeof(double)));
+	(int)(2 * PORT_INT + MAXCARD * (off_t_size + NUMSIDES * PORT_DOUBLE));
 
     /* stack size of t->n_levels + 1 would be enough because of depth first search */
     /* only one node per level on stack at any given time */



More information about the grass-commit mailing list