summaryrefslogtreecommitdiff
path: root/sci-libs/coinor-vol/files/coinor-vol-1.5.4-musl-1.2.3-null.patch
diff options
context:
space:
mode:
authorV3n3RiX <venerix@koprulu.sector>2022-08-06 08:09:34 +0100
committerV3n3RiX <venerix@koprulu.sector>2022-08-06 08:09:34 +0100
commitda3552023d9aae2ee5183df71a80a8169414974e (patch)
treed26518a0f3fb7b5f62d9fa5f546757d405f4d380 /sci-libs/coinor-vol/files/coinor-vol-1.5.4-musl-1.2.3-null.patch
parent51f0d16e058c162dbce0f93d871ba45683b0ab3a (diff)
gentoo auto-resync : 06:08:2022 - 08:09:34
Diffstat (limited to 'sci-libs/coinor-vol/files/coinor-vol-1.5.4-musl-1.2.3-null.patch')
-rw-r--r--sci-libs/coinor-vol/files/coinor-vol-1.5.4-musl-1.2.3-null.patch24
1 files changed, 24 insertions, 0 deletions
diff --git a/sci-libs/coinor-vol/files/coinor-vol-1.5.4-musl-1.2.3-null.patch b/sci-libs/coinor-vol/files/coinor-vol-1.5.4-musl-1.2.3-null.patch
new file mode 100644
index 000000000000..96a154740ed4
--- /dev/null
+++ b/sci-libs/coinor-vol/files/coinor-vol-1.5.4-musl-1.2.3-null.patch
@@ -0,0 +1,24 @@
+https://bugs.gentoo.org/841746
+https://github.com/coin-or/Vol/commit/7b65983cfbf66f9a615c1babcc28a7cd87eee3c4
+
+From: Stefan Vigerske <svigerske@gams.com>
+Date: Sat, 1 Feb 2020 17:45:41 +0000
+Subject: [PATCH] there should be no need to cast NULL, closes #1
+
+--- a/src/OsiVol/OsiVolSolverInterfaceIO.cpp
++++ b/src/OsiVol/OsiVolSolverInterfaceIO.cpp
+@@ -423,10 +423,10 @@ OsiVolSolverInterface::writeMps(const char *filename,
+ writer.setMpsData(*getMatrixByCol(), getInfinity(),
+ getColLower(), getColUpper(),
+ getObjCoefficients(),
+- reinterpret_cast<const char *> (NULL) /*integrality*/,
++ NULL /*integrality*/,
+ getRowLower(), getRowUpper(),
+- reinterpret_cast<const char **> (NULL) /*colnam*/,
+- reinterpret_cast<const char **> (NULL) /*rownam*/);
++ NULL /*colnam*/,
++ NULL /*rownam*/);
+ std::string fname = filename;
+ if (extension)
+ { if (extension[0] != '\0' && extension[0] != '.')
+