summaryrefslogtreecommitdiff
path: root/content/other/pbs.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'content/other/pbs.cpp')
-rw-r--r--content/other/pbs.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/content/other/pbs.cpp b/content/other/pbs.cpp
index 7cb60e5..5508d6c 100644
--- a/content/other/pbs.cpp
+++ b/content/other/pbs.cpp
@@ -10,9 +10,8 @@ while (true) {
// reset simulation
for (int step = 0; auto [mid, i] : focus) {
- while (step <= mid) {
+ for (; step <= mid; step++) {
// simulation step
- step++;
}
if (/* requirement already fulfilled */) high[i] = mid;
else low[i] = mid + 1;