From b10b995a846ebd7583feb6f2a65ebe8b4144e7f0 Mon Sep 17 00:00:00 2001 From: David Williams Date: Thu, 29 Nov 2012 18:13:41 +0100 Subject: [PATCH] Fixed compiler warning. --- library/PolyVoxCore/include/PolyVoxCore/LargeVolume.inl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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; }