boussaffawalid / muparserx

Automatically exported from code.google.com/p/muparserx
Other
0 stars 0 forks source link

Switched order of parameters at one ErrorContext exception? #24

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
look et mpError.h, line 158

ErrorContext(EErrorCodes a_iErrc,
             int a_iPos,
             string_type a_sIdent,
             char_type cType1,
             char_type cType2,
             int nArg);

You are saying that cType1 is expected type and cType2 is the actual type, but 
if i invoke this exception in my application by 

throw ParserError(ErrorContext(ecTYPE_CONFLICT_FUN, GetExprPos(), GetIdent(), 
'i', arg_1->GetType(), 1));

where arg_1->GetType() returns 'c', then i get error like in picture, as you 
see, "i" and "c" in error message should be switched

solution: either change comments on lines 169 and 170 or tweak strings in 
ParserErrorMsg::ParserErrorMsg()

Original issue reported on code.google.com by Rotter.M...@gmail.com on 29 Jan 2013 at 8:39

Attachments:

GoogleCodeExporter commented 9 years ago

Original comment by Rotter.M...@gmail.com on 4 Feb 2013 at 1:30

GoogleCodeExporter commented 9 years ago

Original comment by Rotter.M...@gmail.com on 4 Feb 2013 at 1:37

GoogleCodeExporter commented 9 years ago

Original comment by Rotter.M...@gmail.com on 4 Feb 2013 at 1:38

GoogleCodeExporter commented 9 years ago

Original comment by Rotter.M...@gmail.com on 4 Feb 2013 at 4:58