mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-26 10:45:37 +08:00
Formatting / warning fix (RW slack)
'initializing': conversion from 'size_t' to 'const int', possible loss of data
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 = std::bitset<sizeof(flag)>(flag).count();
|
const int c = static_cast<int>(std::bitset<sizeof(flag)>(flag).count());
|
||||||
return c;
|
return c;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user