fix [] & [] 78/19078/2
Antoine ELIAS [Thu, 9 Feb 2017 17:32:18 +0000 (18:32 +0100)]
to test : if [] & [] then disp ok else disp ko end

Change-Id: I3e2cff5ce9907046fa9326afa9faa45c155c69f0

scilab/modules/ast/src/cpp/operations/types_and.cpp

index d44d21c..8903872 100644 (file)
@@ -473,7 +473,7 @@ void isValueFalse(Double* _pL, Bool** _pOut)
     if (_pL->isEmpty())
     {
         //call non shorcut operation
-        *_pOut = NULL;
+        *_pOut = new Bool(0); //[] && something -> false
         return;
     }