mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-03-22 23:05:36 +08:00
Small fix for bit count
This commit is contained in:
@@ -66,7 +66,7 @@ namespace BlackMisc
|
||||
|
||||
int CEntityFlags::numberOfEntities(BlackMisc::Network::CEntityFlags::Entity flag)
|
||||
{
|
||||
const int c = static_cast<int>(std::bitset<sizeof(flag)>(flag).count());
|
||||
const int c = static_cast<int>(std::bitset<(sizeof(flag) * 8)>(flag).count());
|
||||
return c;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user