diff --git a/library/PolyVoxCore/include/PolyVoxCore/LargeVolume.inl b/library/PolyVoxCore/include/PolyVoxCore/LargeVolume.inl index 4e679477..54df09c5 100644 --- a/library/PolyVoxCore/include/PolyVoxCore/LargeVolume.inl +++ b/library/PolyVoxCore/include/PolyVoxCore/LargeVolume.inl @@ -622,8 +622,8 @@ namespace PolyVox template float LargeVolume::calculateCompressionRatio(void) { - float fRawSize = m_pBlocks.size() * m_uBlockSideLength * m_uBlockSideLength* m_uBlockSideLength * sizeof(VoxelType); - float fCompressedSize = calculateSizeInBytes(); + float fRawSize = static_cast(m_pBlocks.size() * m_uBlockSideLength * m_uBlockSideLength* m_uBlockSideLength * sizeof(VoxelType)); + float fCompressedSize = static_cast(calculateSizeInBytes()); return fCompressedSize/fRawSize; }