fix concatenation of matrix with [] and list() 94/17294/3
Antoine ELIAS [Thu, 8 Oct 2015 08:35:49 +0000 (10:35 +0200)]
test_run ast matrix_exp

Change-Id: I5dbe2b28d452d3144c015bf24fdb6ad22b716d17

scilab/modules/ast/src/cpp/ast/run_MatrixExp.hpp

index bd82b96..108bfe2 100644 (file)
@@ -141,7 +141,13 @@ void RunVisitorT<T>::visitprivate(const MatrixExp &e)
                         pGT->killMe();
                         continue;
                     }
-                    
+
+                    if (pGT->isDouble() && pGT->getAs<types::Double>()->isEmpty())
+                    {
+                        pGT->killMe();
+                        continue;
+                    }
+
                     poRow = pGT;
                     continue;
                 }