From 61202d60568881c366ba6a8a6d62bb4b50ca15e4 Mon Sep 17 00:00:00 2001 From: p265186 Date: Thu, 5 Jul 2012 09:40:18 +0200 Subject: [PATCH] Fixed GCC compile error. --- library/PolyVoxCore/include/PolyVoxCore/VolumeResampler.inl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/library/PolyVoxCore/include/PolyVoxCore/VolumeResampler.inl b/library/PolyVoxCore/include/PolyVoxCore/VolumeResampler.inl index c9082a4c..55152136 100644 --- a/library/PolyVoxCore/include/PolyVoxCore/VolumeResampler.inl +++ b/library/PolyVoxCore/include/PolyVoxCore/VolumeResampler.inl @@ -65,7 +65,7 @@ namespace PolyVox for(int32_t sx = m_regSrc.getLowerCorner().getX(), dx = m_regDst.getLowerCorner().getX(); dx <= m_regDst.getUpperCorner().getX(); sx++,dx++) { const typename SrcVolumeType::VoxelType& tSrcVoxel = m_pVolSrc->getVoxelAt(sx,sy,sz); - const typename DstVolumeType::VoxelType& tDstVoxel = static_cast(m_pVolSrc->getVoxelAt(sx,sy,sz)); + const typename DstVolumeType::VoxelType& tDstVoxel = static_cast(m_pVolSrc->getVoxelAt(sx,sy,sz)); m_pVolDst->setVoxelAt(dx,dy,dz,tDstVoxel); } } @@ -121,7 +121,7 @@ namespace PolyVox typename SrcVolumeType::VoxelType tInterpolatedValue = trilinearlyInterpolate(voxel000,voxel100,voxel010,voxel110,voxel001,voxel101,voxel011,voxel111,sx,sy,sz); - typename DstVolumeType::VoxelType result = static_cast(tInterpolatedValue); + typename DstVolumeType::VoxelType result = static_cast(tInterpolatedValue); m_pVolDst->setVoxelAt(dx,dy,dz,result); } }