From d1e9def682a5125b335d9f72495b3ad8c66873d5 Mon Sep 17 00:00:00 2001 From: tqcq Date: Sat, 26 Oct 2024 12:40:45 +0000 Subject: [PATCH] fix :error --- drama/src/rev-mc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drama/src/rev-mc.c b/drama/src/rev-mc.c index 96b8f1f..27d7bb4 100644 --- a/drama/src/rev-mc.c +++ b/drama/src/rev-mc.c @@ -375,7 +375,7 @@ find_row_mask(std::vector &sets, if (my_end_pos > g_base_pos.load(std::memory_order_relaxed) + step_count) { std::lock_guard _(lock); if (my_end_pos > g_base_pos + step_count) { - g_base_pos = my_end_pos; + g_base_pos = my_end_pos - step_count; row_mask = cur_mask; } } else if (g_base_pos.load(std::memory_order_relaxed) <= my_end_pos) {