From e73bfea82e088975835b030555fcb08bc06b980a Mon Sep 17 00:00:00 2001 From: Dnomd343 Date: Sat, 8 Apr 2023 18:03:43 +0800 Subject: [PATCH] test: fix global codec test --- test/global/raw_code.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/global/raw_code.cc b/test/global/raw_code.cc index 19fc7fe..e165aa0 100644 --- a/test/global/raw_code.cc +++ b/test/global/raw_code.cc @@ -3,14 +3,14 @@ #include "gtest/gtest.h" #include "global_utils.h" -using klotski::Common; using klotski::RawCode; using klotski::AllCases; using klotski::CommonCode; +using klotski::Common::range_reverse; uint64_t convert(uint64_t common_code) { // try to convert as raw code auto code = C_2x2 << (common_code >> 32) * 3; - auto range = Common::range_reverse((uint32_t)common_code); + auto range = range_reverse((uint32_t)common_code); for (int addr = 0; range; range >>= 2) { while ((code >> addr) & 0b111 && addr < 60) { addr += 3;