projects
/
scilab.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
(from parent 1:
c99e75f
)
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
patch
|
blob
|
history
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())