[GRASS-SVN] r46434 - grass/trunk/vector/v.vol.rst

svn_grass at osgeo.org svn_grass at osgeo.org
Sat May 28 12:08:45 EDT 2011


Author: mmetz
Date: 2011-05-28 09:08:45 -0700 (Sat, 28 May 2011)
New Revision: 46434

Modified:
   grass/trunk/vector/v.vol.rst/user1.c
Log:
fix off_t casting

Modified: grass/trunk/vector/v.vol.rst/user1.c
===================================================================
--- grass/trunk/vector/v.vol.rst/user1.c	2011-05-28 16:04:53 UTC (rev 46433)
+++ grass/trunk/vector/v.vol.rst/user1.c	2011-05-28 16:08:45 UTC (rev 46434)
@@ -405,7 +405,7 @@
 	for (i = 0; i < nsizr; i++) {
 	    /* seek to the right row */
 	    G_fseek
-		(Tmp_fd_cell, (off_t)((nsizr - 1 - i) * nsizc * sizeof(FCELL)),
+		(Tmp_fd_cell, ((off_t)(nsizr - 1 - i) * nsizc * sizeof(FCELL)),
 		 0);
 	    fread(cell, sizeof(FCELL), nsizc, Tmp_fd_cell);
 	    Rast_put_f_row(fdcout, cell);



More information about the grass-commit mailing list