Skip to content

Commit

Permalink
Merge pull request #21 from cvjena/master
Browse files Browse the repository at this point in the history
Fix float parsing bug in ConfigParsing
  • Loading branch information
Clemens-Alexander Brust committed Mar 21, 2015
2 parents d2115a1 + e1c65ea commit 6966b37
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/util/ConfigParsing.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,12 @@ void ParseDatumParamIfPossible ( std::string line, std::string identifier, datum

std::string size = line.substr ( size_pos + ilen );

k = std::atof ( size.c_str() );
std::stringstream ss;
ss << size;
datum d;
ss >> d;

k = d; //std::atof ( size.c_str() );
}

}

0 comments on commit 6966b37

Please sign in to comment.