From 92db00625072e7c7870ed27a6b12539533c69f72 Mon Sep 17 00:00:00 2001 From: David Williams Date: Thu, 28 May 2015 22:40:25 +0200 Subject: [PATCH] Fixed compile warnings. --- include/PolyVox/MarchingCubesSurfaceExtractor.inl | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/include/PolyVox/MarchingCubesSurfaceExtractor.inl b/include/PolyVox/MarchingCubesSurfaceExtractor.inl index 57ff044e..df5be386 100644 --- a/include/PolyVox/MarchingCubesSurfaceExtractor.inl +++ b/include/PolyVox/MarchingCubesSurfaceExtractor.inl @@ -74,17 +74,17 @@ namespace PolyVox typename VolumeType::Sampler startOfSlice(volData); startOfSlice.setPosition(region.getLowerX(), region.getLowerY(), region.getLowerZ()); - for (int32_t uZRegSpace = 0; uZRegSpace < uRegionDepthInVoxels; uZRegSpace++) + for (uint32_t uZRegSpace = 0; uZRegSpace < uRegionDepthInVoxels; uZRegSpace++) { typename VolumeType::Sampler startOfRow = startOfSlice; - for (int32_t uYRegSpace = 0; uYRegSpace < uRegionHeightInVoxels; uYRegSpace++) + for (uint32_t uYRegSpace = 0; uYRegSpace < uRegionHeightInVoxels; uYRegSpace++) { // Copying a sampler which is already pointing at the correct location seems (slightly) faster than // calling setPosition(). Therefore we make use of 'startOfRow' and 'startOfSlice' to reset the sampler. typename VolumeType::Sampler sampler = startOfRow; - for (int32_t uXRegSpace = 0; uXRegSpace < uRegionWidthInVoxels; uXRegSpace++) + for (uint32_t uXRegSpace = 0; uXRegSpace < uRegionWidthInVoxels; uXRegSpace++) { // Note: In many cases the provided region will be (mostly) empty which means mesh vertices/indices // are not generated and the only thing that is done for each cell is the computation of iCubeIndex.