netlist: Fix crash in infix function evaluation. (nw)

This commit is contained in:
couriersud 2020-01-29 18:51:26 +01:00
parent 2b7c6af9ef
commit 2742727a0b

View File

@ -211,7 +211,7 @@ namespace plib {
}
else if (p == 0) // Function or variable
{
if (sexpr[i+1] == "(")
if ((i+1<sexpr.size()) && sexpr[i+1] == "(")
opstk.push(s);
else
postfix.push_back(s);