Changed void* to uint8_t*.

This commit is contained in:
Daviw Williams 2013-02-08 13:29:49 +01:00
parent c3801db4e2
commit c5023ff623
2 changed files with 3 additions and 3 deletions

View File

@ -65,7 +65,7 @@ namespace PolyVox
void compress(Compressor* pCompressor); void compress(Compressor* pCompressor);
void uncompress(Compressor* pCompressor); void uncompress(Compressor* pCompressor);
void* m_pCompressedData; uint8_t* m_pCompressedData;
uint32_t m_uCompressedDataLength; uint32_t m_uCompressedDataLength;
VoxelType* m_tUncompressedData; VoxelType* m_tUncompressedData;
uint16_t m_uSideLength; uint16_t m_uSideLength;

View File

@ -167,7 +167,7 @@ namespace PolyVox
uCompressedLength = pCompressor->compress(pSrcData, uSrcLength, pDstData, uDstLength); uCompressedLength = pCompressor->compress(pSrcData, uSrcLength, pDstData, uDstLength);
// Create new compressed data and copy across // Create new compressed data and copy across
m_pCompressedData = reinterpret_cast<void*>( new uint8_t[uCompressedLength] ); m_pCompressedData = new uint8_t[uCompressedLength];
memcpy(m_pCompressedData, pDstData, uCompressedLength); memcpy(m_pCompressedData, pDstData, uCompressedLength);
m_uCompressedDataLength = uCompressedLength; m_uCompressedDataLength = uCompressedLength;
} }
@ -187,7 +187,7 @@ namespace PolyVox
uCompressedLength = pCompressor->compress(pSrcData, uSrcLength, pDstData, uDstLength); uCompressedLength = pCompressor->compress(pSrcData, uSrcLength, pDstData, uDstLength);
// Create new compressed data and copy across // Create new compressed data and copy across
m_pCompressedData = reinterpret_cast<void*>( new uint8_t[uCompressedLength] ); m_pCompressedData = new uint8_t[uCompressedLength];
memcpy(m_pCompressedData, pDstData, uCompressedLength); memcpy(m_pCompressedData, pDstData, uCompressedLength);
m_uCompressedDataLength = uCompressedLength; m_uCompressedDataLength = uCompressedLength;
} }