# HG changeset patch # User Chris Cannam # Date 1383580066 0 # Node ID e50a8fee67529803a1512d1ddd83eb6a76d853c4 # Parent 38bb7c8e415d488ddb7786ab177a44d9f183e6ab Fix error in break condition for csv file analysis -- was making csv file type guessing very slow for large files diff -r 38bb7c8e415d -r e50a8fee6752 data/fileio/CSVFormat.cpp --- 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();