Closed bernalde closed 6 years ago
Moved from TRAC as part of COIN fORgery: https://projects.coin-or.org/Clp/ticket/76 OsiClpSolverInterface?.cpp:7453:24: warning: logical 'or' of collectively exhaustive tests is always true [-Wlogical-op] Source code is
if (array[0]>=0, array[0]<=2)
Maybe better code if (array[0] >= 0 && array[0] <= 2)
if (array[0] >= 0 && array[0] <= 2)
Correct - modified (had been modified to || not &&)
Moved from TRAC as part of COIN fORgery: https://projects.coin-or.org/Clp/ticket/76 OsiClpSolverInterface?.cpp:7453:24: warning: logical 'or' of collectively exhaustive tests is always true [-Wlogical-op] Source code is
Maybe better code
if (array[0] >= 0 && array[0] <= 2)