mirror of
https://github.com/esphome/esphome.git
synced 2026-09-01 10:36:01 +00:00
Fix clang-tidy: use uint64_t instead of unsigned long long
This commit is contained in:
@@ -167,7 +167,7 @@ template<typename ValueType, typename BitPolicy = DefaultBitPolicy<ValueType, 16
|
||||
} else if constexpr (sizeof(bitmask_t) <= sizeof(uint32_t)) {
|
||||
bit = __builtin_ctzl(static_cast<uint32_t>(mask));
|
||||
} else {
|
||||
bit = __builtin_ctzll(static_cast<unsigned long long>(mask));
|
||||
bit = __builtin_ctzll(static_cast<uint64_t>(mask));
|
||||
}
|
||||
return bit < BitPolicy::MAX_BITS ? bit : BitPolicy::MAX_BITS;
|
||||
#else
|
||||
|
||||
Reference in New Issue
Block a user