fix bug 6792 : save expected size before recursive call of SeqExp. 31/16131/5
Sylvain GENIN [Tue, 10 Mar 2015 14:22:45 +0000 (15:22 +0100)]
Change-Id: Iedbb09d2c493ab6b349e199b5a44f672c3363216

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)