beltoforion / muparserx

A C++ Library for Parsing Expressions with Strings, Complex Numbers, Vectors, Matrices and more.
http://beltoforion.de/en/muparserx
BSD 2-Clause "Simplified" License
135 stars 60 forks source link

Assertion fails #68

Closed jeffreyscottgraham closed 8 years ago

jeffreyscottgraham commented 8 years ago

The expression (abs(-3)+2) >= min(6,5)

fails with Assertion "stArgCount.size()" failed: parser/mpParserBase.cpp line 939

On Ubuntu Linux 14.04 x86_64 with g++ 4.9 and also on OSX with llvm, both with muparserx 4.0.5

jeffreyscottgraham commented 8 years ago

Noticed that by adding an outer pair of parens to the expression ((abs(-3)+2) >= min(6,5))

works

beltoforion commented 8 years ago

Fixed in Version 4.0.7