fix extraction with boolean sparse index 74/21374/2
Antoine ELIAS [Thu, 20 Feb 2020 20:01:16 +0000 (21:01 +0100)]
Change-Id: I90d97627d8b5ae85f76d3b35183df5856122bd9c

scilab/modules/ast/src/cpp/types/arrayof.cpp

index d37f69f..71989ee 100644 (file)
@@ -1349,7 +1349,7 @@ GenericType* ArrayOf<T>::extract(typed_list* _pArgs)
             }
             else
             {
-                if ((*_pArgs)[0]->isBool())
+                if ((*_pArgs)[0]->isBool() || (*_pArgs)[0]->isSparseBool())
                 {
                     //boolean extraction must return a column vector
                     int piRealDim[2] = { piCountDim[0], 1 };