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; }