fix [1;[]] after https://codereview.scilab.org/#/c/17221 85/17285/1
Antoine ELIAS [Tue, 6 Oct 2015 09:33:05 +0000 (11:33 +0200)]
Change-Id: I9030fc36a17e181b4a554c1631c33d3f91309b7c

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

index b66cc5c..bd82b96 100644 (file)
@@ -312,7 +312,14 @@ void RunVisitorT<T>::visitprivate(const MatrixExp &e)
 
                 continue;
             }
-
+            else
+            {//[]
+                if (pGT->isDouble() && pGT->getAs<types::Double>()->isEmpty())
+                {
+                    pGT->killMe();
+                    continue;
+                }
+            }
 
             //check dimension
             if (pGT->getCols() != pGTResult->getCols())