coin-or / Clp.old

This a mirror of the subversion repository on COIN-OR.
https://projects.coin-or.org/Clp
Other
36 stars 20 forks source link

[TRAC] OsiClpSolverInterface.cpp:7453: bad if test ? #30

Closed bernalde closed 6 years ago

bernalde commented 6 years ago

Moved from TRAC as part of COIN fORgery: https://projects.coin-or.org/Clp/ticket/76 image 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)

jjhforrest commented 6 years ago

Correct - modified (had been modified to || not &&)