Parcourir la source

Correct a bug for evluation of stantard function

Jean Fromentin il y a 8 ans
Parent
commit
6ad437c58e
1 fichiers modifiés avec 1 ajouts et 1 suppressions
  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);
   }
 
   //------------------------------------------------