mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-03-30 20:15:35 +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)
|
||||
{
|
||||
const int c = std::bitset<sizeof(flag)>(flag).count();
|
||||
const int c = static_cast<int>(std::bitset<sizeof(flag)>(flag).count());
|
||||
return c;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user