changeset 153:c8a149fccfda

corrected bug in reading floats from text files
author Nicolas Saunier <nicolas.saunier@polymtl.ca>
date Tue, 06 Sep 2011 19:22:24 -0400
parents 74b1fc68d4df
children 668710d4c773
files c/utils.cpp
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/c/utils.cpp	Tue Sep 06 18:44:23 2011 -0400
+++ b/c/utils.cpp	Tue Sep 06 19:22:24 2011 -0400
@@ -19,7 +19,7 @@
       ::split(tokens, line, separator);
       vector<float> numbers;
       BOOST_FOREACH(string s, tokens)
-	numbers.push_back(::toInt(s));
+	numbers.push_back(::toFloat(s));
       if (!numbers.empty())
 	result.push_back(numbers);
     }