mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-26 02:35:38 +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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -397,7 +397,7 @@ namespace BlackMisc
|
|||||||
bool m_enabled = true; //!< to be displayed in simulator
|
bool m_enabled = true; //!< to be displayed in simulator
|
||||||
bool m_rendered = false; //!< really shown in simulator
|
bool m_rendered = false; //!< really shown in simulator
|
||||||
bool m_partsSynchronized = false; //!< sync.parts
|
bool m_partsSynchronized = false; //!< sync.parts
|
||||||
bool m_fastPositionUpdates = false; //!<use fast position updates
|
bool m_fastPositionUpdates = false; //!< use fast position updates
|
||||||
|
|
||||||
//! Init, which syncronizes some denormalized values
|
//! Init, which syncronizes some denormalized values
|
||||||
void init();
|
void init();
|
||||||
|
|||||||
Reference in New Issue
Block a user