diff options
author | Max Brazhnikov <makc@FreeBSD.org> | 2020-09-27 00:29:23 +0800 |
---|---|---|
committer | Max Brazhnikov <makc@FreeBSD.org> | 2020-09-27 00:29:23 +0800 |
commit | f29c12c3182714b0ff4cfd29f573e1e899f31836 (patch) | |
tree | dad4499bb73c6cf67fbdba44cae9669ec5d77ea5 /math/scilab/files | |
parent | e3ac3feb1669d81d739adfc87d6f63b6723729f1 (diff) | |
download | freebsd-ports-gnome-f29c12c3182714b0ff4cfd29f573e1e899f31836.tar.gz freebsd-ports-gnome-f29c12c3182714b0ff4cfd29f573e1e899f31836.tar.zst freebsd-ports-gnome-f29c12c3182714b0ff4cfd29f573e1e899f31836.zip |
math/scilab: add patch to fix build with matio-1.5.18
Diffstat (limited to 'math/scilab/files')
-rw-r--r-- | math/scilab/files/patch-modules_matio_src_cpp_GetSparseVariable.cpp | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/math/scilab/files/patch-modules_matio_src_cpp_GetSparseVariable.cpp b/math/scilab/files/patch-modules_matio_src_cpp_GetSparseVariable.cpp new file mode 100644 index 000000000000..fd9c297f40e5 --- /dev/null +++ b/math/scilab/files/patch-modules_matio_src_cpp_GetSparseVariable.cpp @@ -0,0 +1,20 @@ +--- modules/matio/src/cpp/GetSparseVariable.cpp.orig 2020-02-25 10:00:03 UTC ++++ modules/matio/src/cpp/GetSparseVariable.cpp +@@ -65,7 +65,7 @@ matvar_t* GetSparseMatVar(types::Sparse* pSparse, cons + 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 @@ matvar_t* GetSparseMatVar(types::Sparse* pSparse, cons + 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); |