@@ -1694,11 +1694,11 @@ static inline void MPSreadName(MPSInput& mps, SPxOut* spxout)
16941694 if (!mps.readLine () || (mps.field0 () == nullptr ))
16951695 break ;
16961696
1697- if (! strcmp (mps.field0 (), " ROWS" ))
1697+ if (strcmp (mps.field0 (), " ROWS" ) == 0 )
16981698 mps.setSection (MPSInput::ROWS);
1699- else if (! strncmp (mps.field0 (), " OBJSEN" , 6 ))
1699+ else if (strncmp (mps.field0 (), " OBJSEN" , 6 ) == 0 )
17001700 mps.setSection (MPSInput::OBJSEN);
1701- else if (! strcmp (mps.field0 (), " OBJNAME" ))
1701+ else if (strcmp (mps.field0 (), " OBJNAME" ) == 0 )
17021702 mps.setSection (MPSInput::OBJNAME);
17031703 else
17041704 break ;
@@ -1721,9 +1721,9 @@ static inline void MPSreadObjsen(MPSInput& mps)
17211721 if (!mps.readLine () || (mps.field1 () == nullptr ))
17221722 break ;
17231723
1724- if (! strcmp (mps.field1 (), " MIN" ))
1724+ if (strcmp (mps.field1 (), " MIN" ) == 0 )
17251725 mps.setObjSense (MPSInput::MINIMIZE);
1726- else if (! strcmp (mps.field1 (), " MAX" ))
1726+ else if (strcmp (mps.field1 (), " MAX" ) == 0 )
17271727 mps.setObjSense (MPSInput::MAXIMIZE);
17281728 else
17291729 break ;
@@ -1732,9 +1732,9 @@ static inline void MPSreadObjsen(MPSInput& mps)
17321732 if (!mps.readLine () || (mps.field0 () == nullptr ))
17331733 break ;
17341734
1735- if (! strcmp (mps.field0 (), " ROWS" ))
1735+ if (strcmp (mps.field0 (), " ROWS" ) == 0 )
17361736 mps.setSection (MPSInput::ROWS);
1737- else if (! strcmp (mps.field0 (), " OBJNAME" ))
1737+ else if (strcmp (mps.field0 (), " OBJNAME" ) == 0 )
17381738 mps.setSection (MPSInput::OBJNAME);
17391739 else
17401740 break ;
@@ -1924,7 +1924,7 @@ static void MPSreadCols(MPSInput& mps, const LPRowSetBase<R>& rset, const NameSe
19241924
19251925 val = atof (mps.field3 ());
19261926
1927- if (! strcmp (mps.field2 (), mps.objName ()))
1927+ if (strcmp (mps.field2 (), mps.objName ()) == 0 )
19281928 col.setObj (val);
19291929 else
19301930 {
@@ -1940,7 +1940,7 @@ static void MPSreadCols(MPSInput& mps, const LPRowSetBase<R>& rset, const NameSe
19401940
19411941 val = atof (mps.field5 ());
19421942
1943- if (! strcmp (mps.field4 (), mps.objName ()))
1943+ if (strcmp (mps.field4 (), mps.objName ()) == 0 )
19441944 col.setObj (val);
19451945 else
19461946 {
@@ -1973,11 +1973,11 @@ static void MPSreadRhs(MPSInput& mps, LPRowSetBase<R>& rset, const NameSet& rnam
19731973 {
19741974 SPX_MSG_INFO2 ((*spxout), (*spxout) << " IMPSRD03 RHS name : " << rhsname << std::endl;);
19751975
1976- if (! strcmp (mps.field0 (), " RANGES" ))
1976+ if (strcmp (mps.field0 (), " RANGES" ) == 0 )
19771977 mps.setSection (MPSInput::RANGES);
1978- else if (! strcmp (mps.field0 (), " BOUNDS" ))
1978+ else if (strcmp (mps.field0 (), " BOUNDS" ) == 0 )
19791979 mps.setSection (MPSInput::BOUNDS);
1980- else if (! strcmp (mps.field0 (), " ENDATA" ))
1980+ else if (strcmp (mps.field0 (), " ENDATA" ) == 0 )
19811981 mps.setSection (MPSInput::ENDATA);
19821982 else
19831983 break ;
@@ -2006,7 +2006,7 @@ static void MPSreadRhs(MPSInput& mps, LPRowSetBase<R>& rset, const NameSet& rnam
20062006 }
20072007 else
20082008 {
2009- if (! strcmp (mps.field2 (), mps.objName ()))
2009+ if (strcmp (mps.field2 (), mps.objName ()) == 0 )
20102010 objoffset = -atof (mps.field3 ());
20112011 else if ((idx = rnames.number (mps.field2 ())) < 0 )
20122012 mps.entryIgnored (" RHS" , mps.field1 (), " row" , mps.field2 ());
@@ -2025,7 +2025,7 @@ static void MPSreadRhs(MPSInput& mps, LPRowSetBase<R>& rset, const NameSet& rnam
20252025
20262026 if (mps.field5 () != nullptr )
20272027 {
2028- if (! strcmp (mps.field4 (), mps.objName ()))
2028+ if (strcmp (mps.field4 (), mps.objName ()) == 0 )
20292029 objoffset = -atof (mps.field5 ());
20302030 else if ((idx = rnames.number (mps.field4 ())) < 0 )
20312031 mps.entryIgnored (" RHS" , mps.field1 (), " row" , mps.field4 ());
@@ -2065,9 +2065,9 @@ static void MPSreadRanges(MPSInput& mps, LPRowSetBase<R>& rset, const NameSet&
20652065 {
20662066 SPX_MSG_INFO2 ((*spxout), (*spxout) << " IMPSRD04 Range name : " << rngname << std::endl;);
20672067
2068- if (! strcmp (mps.field0 (), " BOUNDS" ))
2068+ if (strcmp (mps.field0 (), " BOUNDS" ) == 0 )
20692069 mps.setSection (MPSInput::BOUNDS);
2070- else if (! strcmp (mps.field0 (), " ENDATA" ))
2070+ else if (strcmp (mps.field0 (), " ENDATA" ) == 0 )
20712071 mps.setSection (MPSInput::ENDATA);
20722072 else
20732073 break ;
@@ -2097,7 +2097,7 @@ static void MPSreadRanges(MPSInput& mps, LPRowSetBase<R>& rset, const NameSet&
20972097 * E - rhs + range rhs
20982098 * ----------------------------------------
20992099 */
2100- if (! strcmp (rngname, mps.field1 ()))
2100+ if (strcmp (rngname, mps.field1 ()) == 0 )
21012101 {
21022102 if ((idx = rnames.number (mps.field2 ())) < 0 )
21032103 mps.entryIgnored (" Range" , mps.field1 (), " row" , mps.field2 ());
@@ -2188,11 +2188,11 @@ static void MPSreadBounds(MPSInput& mps, LPColSetBase<R>& cset, const NameSet& c
21882188 }
21892189
21902190 // Is the value field used ?
2191- if ((! strcmp (mps.field1 (), " LO" ))
2192- || (! strcmp (mps.field1 (), " UP" ))
2193- || (! strcmp (mps.field1 (), " FX" ))
2194- || (! strcmp (mps.field1 (), " LI" ))
2195- || (! strcmp (mps.field1 (), " UI" )) )
2191+ if (strcmp (mps.field1 (), " LO" ) == 0
2192+ || strcmp (mps.field1 (), " UP" ) == 0
2193+ || strcmp (mps.field1 (), " FX" ) == 0
2194+ || strcmp (mps.field1 (), " LI" ) == 0
2195+ || strcmp (mps.field1 (), " UI" ) == 0 )
21962196 {
21972197 if ((mps.field3 () != nullptr ) && (mps.field4 () == nullptr ))
21982198 mps.insertName (" _BND_" , true );
@@ -2213,18 +2213,18 @@ static void MPSreadBounds(MPSInput& mps, LPColSetBase<R>& cset, const NameSet& c
22132213 }
22142214
22152215 // Only read the first Bound in section
2216- if (! strcmp (bndname, mps.field2 ()))
2216+ if (strcmp (bndname, mps.field2 ()) == 0 )
22172217 {
22182218 if ((idx = cnames.number (mps.field3 ())) < 0 )
22192219 mps.entryIgnored (" column" , mps.field3 (), " bound" , bndname);
22202220 else
22212221 {
22222222 if (mps.field4 () == nullptr )
22232223 val = 0.0 ;
2224- else if (! strcmp (mps.field4 (), " -Inf" ) || ! strcmp (mps.field4 (), " -inf" ))
2224+ else if (strcmp (mps.field4 (), " -Inf" ) == 0 || strcmp (mps.field4 (), " -inf" ) == 0 )
22252225 val = R (-infinity);
2226- else if (! strcmp (mps.field4 (), " Inf" ) || ! strcmp (mps.field4 (), " inf" )
2227- || ! strcmp (mps.field4 (), " +Inf" ) || ! strcmp (mps.field4 (), " +inf" ))
2226+ else if (strcmp (mps.field4 (), " Inf" ) == 0 || strcmp (mps.field4 (), " inf" ) == 0
2227+ || strcmp (mps.field4 (), " +Inf" ) == 0 || strcmp (mps.field4 (), " +inf" ) == 0 )
22282228 val = R (infinity);
22292229 else
22302230 val = atof (mps.field4 ());
0 commit comments