Browse Source

fix: use uint32_t instead of uint8_t

master
Dnomd343 2 years ago
parent
commit
a5fa903e76
  1. 2
      src/common_code/common_code.cc

2
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);
}

Loading…
Cancel
Save