Skip to content

Commit 8085763

Browse files
author
Laurent Perron
committed
fix #1238
1 parent 4a38fcf commit 8085763

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ortools/sat/csharp/CpSolver.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,7 @@ public Boolean BooleanValue(ILiteral literal)
160160
}
161161
else
162162
{
163-
return response_.Solution[index] == 0;
163+
return response_.Solution[-index - 1] == 0;
164164
}
165165
}
166166
else

0 commit comments

Comments
 (0)