diff --git a/include/r8veritas.hh b/include/r8veritas.hh index 1a18197..1c58dc8 100644 --- a/include/r8veritas.hh +++ b/include/r8veritas.hh @@ -63,7 +63,7 @@ private: struct compare_ins { bool operator()(const ins &a, const ins &b) const { auto pop_a = std::popcount(a.bc >> 1); - auto pop_b = std::popcount(a.bc >> 1); + auto pop_b = std::popcount(b.bc >> 1); if (pop_a != pop_b) return pop_a < pop_b; if (a.bc != b.bc)