mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-27 19:25:49 +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)
|
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;
|
return c;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user