1
0
Fork 0

Fix clang compile error

Clang would previously fail on debug builds due to the use of an old-style cast.
This commit is contained in:
Theo Tosini 2015-08-23 23:11:08 -04:00
parent 908a554efa
commit 92b1a3440d
No known key found for this signature in database
GPG Key ID: EF90658434A23C6D
1 changed files with 1 additions and 1 deletions

View File

@ -377,7 +377,7 @@ void cCompoGenCache::ComposeTerrain(cChunkDesc & a_ChunkDesc, const cChunkDesc::
if (((m_NumHits + m_NumMisses) % 1024) == 10)
{
LOGD("CompoGenCache: %d hits, %d misses, saved %.2f %%", m_NumHits, m_NumMisses, 100.0 * m_NumHits / (m_NumHits + m_NumMisses));
LOGD("CompoGenCache: Avg cache chain length: %.2f", (float)m_TotalChain / m_NumHits);
LOGD("CompoGenCache: Avg cache chain length: %.2f", static_cast<float>(m_TotalChain) / m_NumHits);
}
#endif // _DEBUG