Skip to content

Commit

Permalink
fixed a bug related to functions
Browse files Browse the repository at this point in the history
  • Loading branch information
lh3 committed May 22, 2015
1 parent 237f3e8 commit aa747e4
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions kexpr.c
Expand Up @@ -193,6 +193,10 @@ static ke1_t *ke_parse_core(const char *_s, int *_n, int *err)
*err |= KEE_UNRP;
break;
} else --n_op; // pop out '('
if (n_op > 0 && op[n_op-1].ttype == KET_FUNC) {
u = push_back(&out, &n_out, &m_out);
*u = op[--n_op];
}
++p;
} else if (*p == ',') {
while (n_op > 0 && op[n_op-1].op >= 0) {
Expand Down

0 comments on commit aa747e4

Please sign in to comment.