Skip to content

Commit

Permalink
Update muParser.cpp
Browse files Browse the repository at this point in the history
  • Loading branch information
beltoforion committed Dec 23, 2023
1 parent 519ee34 commit ed5ed04
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/muParser.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,8 @@ namespace mu
*/
int Parser::IsVal(const char_type* a_szExpr, int* a_iPos, value_type* a_fVal)
{
/*
/* // 2023-12-23 Issue #136: This code breaks localization!
// fix for #123; std::Stringstream is broken on Mac; use std::stod instead
try
{
Expand All @@ -75,8 +76,8 @@ namespace mu

value_type fVal(0);

stringstream_type stream(a_szExpr);
// stream.seekg(0); // todo: check if this really is necessary
// stringstream_type stream(a_szExpr);
std::istringstream stream(a_szExpr);
stream.imbue(Parser::s_locale);
stream >> fVal;
stringstream_type::pos_type iEnd = stream.tellg(); // Position after reading
Expand Down

0 comments on commit ed5ed04

Please sign in to comment.