GCC compile fixes.

This commit is contained in:
David Williams 2013-07-31 16:37:39 +02:00
parent e35b58ba18
commit 9503d975c1
5 changed files with 9 additions and 8 deletions

View File

@ -24,6 +24,7 @@ freely, subject to the following restrictions:
#ifndef __PolyVox_BlockCompressor_H__
#define __PolyVox_BlockCompressor_H__
#include "PolyVoxCore/PolyVoxForwardDeclarations.h"
#include "PolyVoxCore/Impl/Block.h"
namespace PolyVox

View File

@ -37,7 +37,7 @@ namespace PolyVox
template <typename VoxelType>
class Block
{
friend LargeVolume<VoxelType>;
friend class LargeVolume<VoxelType>;
public:
Block()
@ -65,7 +65,7 @@ namespace PolyVox
template <typename VoxelType>
class CompressedBlock : public Block<VoxelType>
{
friend LargeVolume<VoxelType>;
friend class LargeVolume<VoxelType>;
public:
CompressedBlock();
@ -94,7 +94,7 @@ namespace PolyVox
template <typename VoxelType>
class UncompressedBlock : public Block<VoxelType>
{
friend LargeVolume<VoxelType>;
friend class LargeVolume<VoxelType>;
public:
UncompressedBlock(uint16_t uSideLength);

View File

@ -80,7 +80,7 @@ namespace PolyVox
memcpy(m_pData, pData, uDataSizeInBytes);
// Flag as modified
m_bDataModified = true;
this->m_bDataModified = true;
}
template <typename VoxelType>
@ -168,7 +168,7 @@ namespace PolyVox
uZPos * m_uSideLength * m_uSideLength
] = tValue;
m_bDataModified = true;
this->m_bDataModified = true;
}
template <typename VoxelType>

View File

@ -45,7 +45,7 @@ namespace PolyVox
{
m_uBlockSideLength = uBlockSideLength;
m_pBlockCompressor = new MinizBlockCompressor();
m_pBlockCompressor = new MinizBlockCompressor<VoxelType>();
m_bIsOurCompressor = true;
m_pPager = 0;

View File

@ -79,8 +79,8 @@ namespace PolyVox
{
// If the value is the same as the current run (and we have not
// reached the maximum run length) then extend the current run.
std::vector< Run<VoxelType> >::iterator currentRun = (vecDstDataAsRuns.end() - 1);
if((*pSrcDataAsType == currentRun->value) && (currentRun->length < (std::numeric_limits<Run<VoxelType>::LengthType>::max)()))
typename std::vector< Run< VoxelType> >::iterator currentRun = (vecDstDataAsRuns.end() - 1);
if((*pSrcDataAsType == currentRun->value) && (currentRun->length < (std::numeric_limits<typename Run<VoxelType>::LengthType>::max)()))
{
currentRun->length++;
}