From 30b8be208b6b1796797912a14c4f045b3d0d2676 Mon Sep 17 00:00:00 2001 From: tqcq Date: Sat, 26 Oct 2024 09:36:29 +0000 Subject: [PATCH] fix: row_mask --- drama/src/rev-mc.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drama/src/rev-mc.c b/drama/src/rev-mc.c index a15a491..2e3bfc8 100644 --- a/drama/src/rev-mc.c +++ b/drama/src/rev-mc.c @@ -354,10 +354,10 @@ find_row_mask(std::vector &sets, step_count = cur_pos - base_pos; my_pos = cur_pos.fetch_add(1); } - while (row_mask < last_mask && step_count > 0) { + while (cur_mask < last_mask && step_count > 0) { --step_count; - for (int i = 0; i < step && row_mask < last_mask; ++i) { - row_mask = next_bit_permutation(row_mask); + for (int i = 0; i < step && cur_mask < last_mask; ++i) { + cur_mask = next_bit_permutation(cur_mask); } } // update pos