You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
gentoo-overlay/sci-libs/coinor-vol/files/coinor-vol-1.5.4-musl-1.2.3...

25 lines
960 B

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] != '.')