Fixed compiler warning.
This commit is contained in:
parent
7636b6fb55
commit
b10b995a84
@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user