From c5023ff62395075505404a1ca02687848db87bb7 Mon Sep 17 00:00:00 2001 From: Daviw Williams Date: Fri, 8 Feb 2013 13:29:49 +0100 Subject: [PATCH] Changed void* to uint8_t*. --- library/PolyVoxCore/include/PolyVoxCore/Impl/Block.h | 2 +- library/PolyVoxCore/include/PolyVoxCore/Impl/Block.inl | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/library/PolyVoxCore/include/PolyVoxCore/Impl/Block.h b/library/PolyVoxCore/include/PolyVoxCore/Impl/Block.h index e27b5b09..67932672 100644 --- a/library/PolyVoxCore/include/PolyVoxCore/Impl/Block.h +++ b/library/PolyVoxCore/include/PolyVoxCore/Impl/Block.h @@ -65,7 +65,7 @@ namespace PolyVox void compress(Compressor* pCompressor); void uncompress(Compressor* pCompressor); - void* m_pCompressedData; + uint8_t* m_pCompressedData; uint32_t m_uCompressedDataLength; VoxelType* m_tUncompressedData; uint16_t m_uSideLength; diff --git a/library/PolyVoxCore/include/PolyVoxCore/Impl/Block.inl b/library/PolyVoxCore/include/PolyVoxCore/Impl/Block.inl index 85504b64..34e59898 100644 --- a/library/PolyVoxCore/include/PolyVoxCore/Impl/Block.inl +++ b/library/PolyVoxCore/include/PolyVoxCore/Impl/Block.inl @@ -167,7 +167,7 @@ namespace PolyVox uCompressedLength = pCompressor->compress(pSrcData, uSrcLength, pDstData, uDstLength); // Create new compressed data and copy across - m_pCompressedData = reinterpret_cast( new uint8_t[uCompressedLength] ); + m_pCompressedData = new uint8_t[uCompressedLength]; memcpy(m_pCompressedData, pDstData, uCompressedLength); m_uCompressedDataLength = uCompressedLength; } @@ -187,7 +187,7 @@ namespace PolyVox uCompressedLength = pCompressor->compress(pSrcData, uSrcLength, pDstData, uDstLength); // Create new compressed data and copy across - m_pCompressedData = reinterpret_cast( new uint8_t[uCompressedLength] ); + m_pCompressedData = new uint8_t[uCompressedLength]; memcpy(m_pCompressedData, pDstData, uCompressedLength); m_uCompressedDataLength = uCompressedLength; }