changeset 261:8b7b1734716c

Fix the segfault in the -Q nsequence reporter. The order is still the wrong way up...
author mas01cr
date Mon, 19 May 2008 16:05:39 +0000
parents 3591dd50697e
children 34ce7f7a177d
files reporter.h
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/reporter.h	Mon May 19 15:59:20 2008 +0000
+++ b/reporter.h	Mon May 19 16:05:39 2008 +0000
@@ -350,7 +350,8 @@
     for(rit = v.rbegin(); rit < v.rend(); rit++) {
       r = *rit;
       std::cout << fileTable + r.trackID*O2_FILETABLE_ENTRY_SIZE << " " << r.dist << std::endl;
-      for(int k=0; k < (int)pointNN; k++){
+      unsigned int size = point_queues[r.trackID].size();
+      for(unsigned int k = 0; k < size; k++) {
 	NNresult rk = point_queues[r.trackID].top();
 	std::cout << rk.dist << " " << rk.qpos << " " << rk.spos << std::endl;
 	point_queues[r.trackID].pop();