Fixed compiler warning.

This commit is contained in:
David Williams 2012-11-29 18:13:41 +01:00
parent 7636b6fb55
commit b10b995a84

View File

@ -622,8 +622,8 @@ namespace PolyVox
template <typename VoxelType> template <typename VoxelType>
float LargeVolume<VoxelType>::calculateCompressionRatio(void) float LargeVolume<VoxelType>::calculateCompressionRatio(void)
{ {
float fRawSize = m_pBlocks.size() * m_uBlockSideLength * m_uBlockSideLength* m_uBlockSideLength * sizeof(VoxelType); float fRawSize = static_cast<float>(m_pBlocks.size() * m_uBlockSideLength * m_uBlockSideLength* m_uBlockSideLength * sizeof(VoxelType));
float fCompressedSize = calculateSizeInBytes(); float fCompressedSize = static_cast<float>(calculateSizeInBytes());
return fCompressedSize/fRawSize; return fCompressedSize/fRawSize;
} }