scilab/scilab-6.1.0-matio-fix-uint32_t-type.patch

21 lines
854 B
Diff
Raw Normal View History

--- scilab-6.1.0/modules/matio/src/cpp/GetSparseVariable.cpp.orig 2021-05-15 20:35:23.779949805 +0200
+++ scilab-6.1.0/modules/matio/src/cpp/GetSparseVariable.cpp 2021-05-15 20:36:43.336525958 +0200
@@ -65,7 +65,7 @@
int* itemsRow = new int[pSparse->getRows()];
pSparse->getNbItemByRow(itemsRow);
- int* colIndexes = (int*)MALLOC(sizeof(int) * (pSparse->getRows() + 1));
+ mat_uint32_t* colIndexes = (mat_uint32_t*)MALLOC(sizeof(mat_uint32_t) * (pSparse->getRows() + 1));
if (colIndexes == NULL)
{
FREE(sparseData);
@@ -82,7 +82,7 @@
colIndexes[K + 1] = colIndexes[K] + itemsRow[K];
}
- int* rowIndexes = (int*)MALLOC(sizeof(int) * nonZeros);
+ mat_uint32_t* rowIndexes = (mat_uint32_t*)MALLOC(sizeof(mat_uint32_t) * nonZeros);
if (rowIndexes == NULL)
{
FREE(sparseData);