changeset 840:e50a8fee6752

Fix error in break condition for csv file analysis -- was making csv file type guessing very slow for large files
author Chris Cannam
date Mon, 04 Nov 2013 15:47:46 +0000
parents 38bb7c8e415d
children 226733f3cf3f 23d3a6eca5c3
files data/fileio/CSVFormat.cpp
diffstat 1 files changed, 3 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/data/fileio/CSVFormat.cpp	Wed Oct 09 14:51:46 2013 +0100
+++ b/data/fileio/CSVFormat.cpp	Mon Nov 04 15:47:46 2013 +0000
@@ -73,8 +73,10 @@
 
             guessQualities(line, lineno);
 
-            if (++lineno == 50) break;
+            ++lineno;
         }
+
+        if (lineno >= 50) break;
     }
 
     guessPurposes();