You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
the code in muParser.cpp
int Parser::IsVal(const char_type* a_szExpr, int *a_iPos, value_type *a_fVal)
{
....
....
below one will crash on android(NDK)
stream >> fVal;//stringstream not working right on android plaform
....
}
so I have change as
//return how many string is legal for value,if return 0 this is not a value
inline int Mywtof( const wchar_t* e_str,double_e_pdValue )
int Parser::IsVal(const char_type_ a_szExpr, int *a_iPos, value_type *a_fVal)
{
value_type fVal(0);
int l_iValueLength = Mywtof(a_szExpr,&fVal);
if( l_iValueLength == 0 )
return 0;
*a_iPos += l_iValueLength;
*a_fVal = fVal;
return 1;
}
the code in muParser.cpp
int Parser::IsVal(const char_type* a_szExpr, int *a_iPos, value_type *a_fVal)
{
....
....
below one will crash on android(NDK)
stream >> fVal;//stringstream not working right on android plaform
....
}
so I have change as
//return how many string is legal for value,if return 0 this is not a value
inline int Mywtof( const wchar_t* e_str,double_e_pdValue )
int Parser::IsVal(const char_type_ a_szExpr, int *a_iPos, value_type *a_fVal)
{
value_type fVal(0);
int l_iValueLength = Mywtof(a_szExpr,&fVal);
if( l_iValueLength == 0 )
return 0;
*a_iPos += l_iValueLength;
*a_fVal = fVal;
return 1;
}
The text was updated successfully, but these errors were encountered: