Skip to content

Commit

Permalink
Off by one error in the solver - 1 cannot be false
Browse files Browse the repository at this point in the history
  • Loading branch information
naderman committed Feb 17, 2012
1 parent 70bea8f commit cb7f656
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Composer/DependencyResolver/Solver.php
Expand Up @@ -1477,7 +1477,7 @@ protected function analyze($level, $rule)

$l1retry = false;

if (!$num && !$l1num) {
if (!$num && !--$l1num) {
// all level 1 literals done
break 2;
}
Expand Down

0 comments on commit cb7f656

Please sign in to comment.