projects
/
scilab.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
operation 'or' fixed
[scilab.git]
/
scilab
/
modules
/
ast
/
src
/
cpp
/
operations
/
types_or.cpp
diff --git
a/scilab/modules/ast/src/cpp/operations/types_or.cpp
b/scilab/modules/ast/src/cpp/operations/types_or.cpp
index
b4bb931
..
34defa0
100644
(file)
--- a/
scilab/modules/ast/src/cpp/operations/types_or.cpp
+++ b/
scilab/modules/ast/src/cpp/operations/types_or.cpp
@@
-462,6
+462,13
@@
int BoolOrBool(Bool* _pL, Bool** _pOut)
int DoubleOrDouble(Double* _pL, Bool** _pOut)
{
+ if (_pL->isEmpty())
+ {
+ //call non shorcut operation
+ *_pOut = NULL;
+ return 0;
+ }
+
for (int i = 0 ; i < _pL->getSize() ; i++)
{
if (_pL->get(i) == 0)