]> www.ginac.de Git - ginac.git/commitdiff
- parsed functions are now correctly evaluated (.eval() was missing)
authorChristian Bauer <Christian.Bauer@uni-mainz.de>
Wed, 29 Mar 2000 20:22:41 +0000 (20:22 +0000)
committerChristian Bauer <Christian.Bauer@uni-mainz.de>
Wed, 29 Mar 2000 20:22:41 +0000 (20:22 +0000)
ginac/input_parser.yy

index 5a80c95cadf3f39c40ce3a47f4bda6dfb0e7b668..e714c9bf97d0f8f04eedcf31de911fb1fc1b72e6 100644 (file)
@@ -95,7 +95,7 @@ exp   : T_NUMBER              {$$ = $1;}
        | T_DIGITS              {$$ = $1;}
        | T_SYMBOL '(' exprseq ')' {
                unsigned i = function::find_function(ex_to_symbol($1).getname(), $3.nops());
-               $$ = function(i, static_cast<const exprseq &>(*($3.bp)));
+               $$ = function(i, static_cast<const exprseq &>(*($3.bp))).eval(1);
        }
        | exp T_EQUAL exp       {$$ = $1 == $3;}
        | exp T_NOTEQ exp       {$$ = $1 != $3;}