diff options
Diffstat (limited to 'include')
-rw-r--r-- | include/bit_ops.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/bit_ops.h b/include/bit_ops.h index ca6fb7d5d..06f47a14c 100644 --- a/include/bit_ops.h +++ b/include/bit_ops.h @@ -74,7 +74,7 @@ inline u32bit hamming_weight(T n) * Count the trailing zero bits in n * *************************************************/ template<typename T> -inline int ctz(T n) +inline u32bit ctz(T n) { for(int i = 0; i != 8*sizeof(T); ++i) if((n >> i) & 0x01) |