[GRASS-SVN] r39702 - grass/trunk/include/iostream
svn_grass at osgeo.org
svn_grass at osgeo.org
Wed Nov 11 08:57:44 EST 2009
Author: neteler
Date: 2009-11-11 08:57:43 -0500 (Wed, 11 Nov 2009)
New Revision: 39702
Modified:
grass/trunk/include/iostream/ami_sort_impl.h
Log:
Fix from Glynn/Moritz applied (trac #775)
Modified: grass/trunk/include/iostream/ami_sort_impl.h
===================================================================
--- grass/trunk/include/iostream/ami_sort_impl.h 2009-11-11 13:57:32 UTC (rev 39701)
+++ grass/trunk/include/iostream/ami_sort_impl.h 2009-11-11 13:57:43 UTC (rev 39702)
@@ -221,18 +221,18 @@
}
SDEBUG MM_manager.print();
- //for (size_t i=0; i< nb_runs; i++) {
- while(!instream->eof()) {
- //crt_run_size = (i == nb_runs-1) ? last_run_size: run_size;
+ for (size_t i=0; i< nb_runs; i++) {
+ //while(!instream->eof()) {
+ crt_run_size = (i == nb_runs-1) ? last_run_size: run_size;
- //SDEBUG cout << "i=" << i << ": runsize=" << crt_run_size << ", ";
+ SDEBUG cout << "i=" << i << ": runsize=" << crt_run_size << ", ";
- crt_run_size = makeRun_Block(instream, data, run_size, cmp);
-/* #ifdef BLOCKED_RUN */
-/* makeRun(instream, data, crt_run_size, cmp); */
-/* #else */
-/* makeRun_Block(instream, data, crt_run_size, cmp); */
-/* #endif */
+ //crt_run_size = makeRun_Block(instream, data, run_size, cmp);
+#ifdef BLOCKED_RUN
+ makeRun(instream, data, crt_run_size, cmp);
+#else
+ makeRun_Block(instream, data, crt_run_size, cmp);
+#endif
SDEBUG MM_manager.print();
More information about the grass-commit
mailing list