keep dimension of int-index during extraction 97/21297/2
Antoine ELIAS [Mon, 10 Feb 2020 16:28:46 +0000 (17:28 +0100)]
Change-Id: I68e04363c5230c553d10dd1adfb986c56bb724da

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

index d50cf5a..cff2747 100644 (file)
@@ -53,7 +53,7 @@ template<typename T>
 Double* convertIndex(T* pI)
 {
     int size = pI->getSize();
-    Double* pCurrentArg = new Double(1, size);
+    Double* pCurrentArg = new Double(pI->getDims(), pI->getDimsArray());
     double* pdbl = pCurrentArg->get();
     for (int l = 0; l < size; l++)
     {