Skip to content

Commit c83f4c2

Browse files
authored
Merge pull request #4 from scipopt/fix
index zero is allowed
2 parents 9ca9c86 + 0df6b02 commit c83f4c2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

code/viprchk.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -1243,7 +1243,7 @@ bool readMultipliers(int &sense, SVectorGMP &mult)
12431243
mult[index] = a;
12441244

12451245
#ifndef NDEBUG
1246-
if( index <= 0 || index >= constraint.size( ) )
1246+
if( index < 0 || index >= constraint.size( ) )
12471247
{
12481248
cerr << "Index out of range " << index << " (0," << constraint.size() << ")" << endl;
12491249
returnStatement = false;

0 commit comments

Comments
 (0)