projects
/
scilab.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
fix [1;[]] after https://codereview.scilab.org/#/c/17221
[scilab.git]
/
scilab
/
modules
/
ast
/
src
/
cpp
/
ast
/
run_MatrixExp.hpp
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
(file)
--- 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<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())