[GRASS-SVN] r42735 - grass/branches/develbranch_6/raster/r.terraflow
svn_grass at osgeo.org
svn_grass at osgeo.org
Fri Jul 9 08:02:24 EDT 2010
Author: mmetz
Date: 2010-07-09 12:02:24 +0000 (Fri, 09 Jul 2010)
New Revision: 42735
Modified:
grass/branches/develbranch_6/raster/r.terraflow/filldepr.cc
Log:
mingw32 fix
Modified: grass/branches/develbranch_6/raster/r.terraflow/filldepr.cc
===================================================================
--- grass/branches/develbranch_6/raster/r.terraflow/filldepr.cc 2010-07-09 12:01:00 UTC (rev 42734)
+++ grass/branches/develbranch_6/raster/r.terraflow/filldepr.cc 2010-07-09 12:02:24 UTC (rev 42735)
@@ -128,8 +128,10 @@
boundaryType* nextedge;
elevation_type h;
cclabel_type u, v, ur, vr;
+ /* no write op to boundaryStr, no need to call stream_len() each time */
+ off_t len = boundaryStr->stream_len();
boundaryStr->seek(0);
- for (size_t i=0; i< boundaryStr->stream_len(); i++) {
+ for (off_t i=0; i< len; i++) {
/*read next edge*/
ae = boundaryStr->read_item(&nextedge);
More information about the grass-commit
mailing list