From a5fa903e7623852f4f9b50174c04dc44d9f1b5ca Mon Sep 17 00:00:00 2001 From: Dnomd343 Date: Tue, 10 Jan 2023 10:26:58 +0800 Subject: [PATCH] fix: use uint32_t instead of uint8_t --- src/common_code/common_code.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/common_code/common_code.cc b/src/common_code/common_code.cc index 2772180..709bdfe 100644 --- a/src/common_code/common_code.cc +++ b/src/common_code/common_code.cc @@ -3,7 +3,7 @@ #include "common_code.h" /// WARN: bin should not be zero -inline uint8_t last_zero_num(uint32_t bin) { // get last zero number +inline uint32_t last_zero_num(uint32_t bin) { // get last zero number bin ^= (bin - 1); return __builtin_popcount(bin >> 1); }