From a8615eba4837807a8be9c4c572e25ea1b75856d3 Mon Sep 17 00:00:00 2001 From: Antoine ELIAS Date: Tue, 6 Oct 2015 11:33:05 +0200 Subject: [PATCH] fix [1;[]] after https://codereview.scilab.org/#/c/17221 Change-Id: I9030fc36a17e181b4a554c1631c33d3f91309b7c --- scilab/modules/ast/src/cpp/ast/run_MatrixExp.hpp | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/scilab/modules/ast/src/cpp/ast/run_MatrixExp.hpp b/scilab/modules/ast/src/cpp/ast/run_MatrixExp.hpp index b66cc5c..bd82b96 100644 --- a/scilab/modules/ast/src/cpp/ast/run_MatrixExp.hpp +++ b/scilab/modules/ast/src/cpp/ast/run_MatrixExp.hpp @@ -312,7 +312,14 @@ void RunVisitorT::visitprivate(const MatrixExp &e) continue; } - + else + {//[] + if (pGT->isDouble() && pGT->getAs()->isEmpty()) + { + pGT->killMe(); + continue; + } + } //check dimension if (pGT->getCols() != pGTResult->getCols()) -- 1.7.9.5