Ver código fonte

Correct a bug for evluation of stantard function

Jean Fromentin 8 anos atrás
pai
commit
6ad437c58e
1 arquivos alterados com 1 adições e 1 exclusões
  1. 1 1
      interpreter.cpp

+ 1 - 1
interpreter.cpp

@@ -262,7 +262,7 @@ namespace Gomu{
       ContextError("There is no symbol named "+name);
     Value* args[max_arguments_number];
     size_t nargs=set_arguments(current,nodes,args);
-    eval_function(symbol,args,nargs);
+    current.value=eval_function(symbol,args,nargs);
   }
 
   //------------------------------------------------