Skip to content

Commit

Permalink
Fix for Issue4 (muParserInt)
Browse files Browse the repository at this point in the history
  • Loading branch information
iberg committed Sep 24, 2014
1 parent 50ad337 commit a2fe54e
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion include/muParserInt.h
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,12 @@ class ParserInt : public ParserBase

virtual std::string do_grouping() const
{
return std::string(1, m_nGroup);
// fix for issue 4: https://code.google.com/p/muparser/issues/detail?id=4
// courtesy of Jens Bartsch
// original code:
// return std::string(1, (char)m_nGroup);
// new code:
return std::string(1, (char)(m_cThousandsSep > 0 ? m_nGroup : CHAR_MAX));
}

private:
Expand Down

0 comments on commit a2fe54e

Please sign in to comment.