fix bug 6792 : save expected size before recursive call of SeqExp.
[scilab.git] / scilab / modules / ast / src / cpp / ast / runvisitor.cpp
index a8806cf..5f77888 100644 (file)
@@ -793,8 +793,10 @@ void RunVisitorT<T>::visitprivate(const SeqExp  &e)
         {
             //reset default values
             setResult(NULL);
+            int iExpectedSize = getExpectedSize();
             setExpectedSize(-1);
             (*itExp)->accept(*this);
+            setExpectedSize(iExpectedSize);
             InternalType * pIT = getResult();
 
             if (pIT != NULL)