updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / muparserx-static / gcc.patch
blob6f48f7ba401407c6cb00609c102531d7c0fd83c1
1 --- parser/mpTokenReader.cpp 2011-02-14 02:05:26.000000000 +0100
2 +++ parser/mpTokenReader.cpp 2011-09-10 12:15:05.000000000 +0200
3 @@ -224,7 +224,16 @@
4 */
5 void TokenReader::SetExpr(const string_type &a_sFormula)
7 - m_sExpr = a_sFormula;
8 + /*
9 + * Since gcc-6.0 tellg behaves different
10 + * See
11 + * http://gcc.gnu.org/bugzilla/show_bug.cgi?id=49384
12 + * and
13 + * http://sourceforge.net/tracker/?func=detail&aid=3403905&group_id=137191&atid=737979
14 + * Appending a space to the expression solves it.
15 + *
16 + */
17 + m_sExpr = a_sFormula + string_type(_T(" "));
18 m_vTokens.clear();
19 ReInit();