bugfix bit_for_each64_2

This commit is contained in:
2022-01-29 15:48:42 +01:00
parent 0e255539ed
commit f3718ab9fb

View File

@@ -162,6 +162,6 @@ static inline int popcount64(u64 n)
/** or would it be more useful (counting bits from zero instead of 1) ?
*/
#define bit_for_each64_2(pos, tmp, ul) \
for (tmp = ul, pos = ctz64(tmp); tmp; tmp ^= 1<<pos, pos = ctz64(tmp))
for (tmp = ul, pos = ctz64(tmp); tmp; tmp ^= 1UL<<pos, pos = ctz64(tmp))
#endif /* BITS_H */