Replaced uint32_t with size_t.

This commit is contained in:
David Williams 2015-12-20 21:59:27 +00:00
parent 1e9fdf074a
commit 9a8e816485
2 changed files with 3 additions and 3 deletions

View File

@ -55,7 +55,7 @@ namespace PolyVox
const VertexType* getRawVertexData(void) const; const VertexType* getRawVertexData(void) const;
POLYVOX_DEPRECATED const std::vector<VertexType>& getVertices(void) const; POLYVOX_DEPRECATED const std::vector<VertexType>& getVertices(void) const;
uint32_t getNoOfIndices(void) const; size_t getNoOfIndices(void) const;
IndexType getIndex(uint32_t index) const; IndexType getIndex(uint32_t index) const;
const IndexType* getRawIndexData(void) const; const IndexType* getRawIndexData(void) const;
POLYVOX_DEPRECATED const std::vector<IndexType>& getIndices(void) const; POLYVOX_DEPRECATED const std::vector<IndexType>& getIndices(void) const;

View File

@ -36,7 +36,7 @@ namespace PolyVox
template <typename VertexType, typename IndexType> template <typename VertexType, typename IndexType>
IndexType Mesh<VertexType, IndexType>::getNoOfVertices(void) const IndexType Mesh<VertexType, IndexType>::getNoOfVertices(void) const
{ {
return m_vecVertices.size(); return static_cast<IndexType>(m_vecVertices.size());
} }
template <typename VertexType, typename IndexType> template <typename VertexType, typename IndexType>
@ -58,7 +58,7 @@ namespace PolyVox
} }
template <typename VertexType, typename IndexType> template <typename VertexType, typename IndexType>
uint32_t Mesh<VertexType, IndexType>::getNoOfIndices(void) const size_t Mesh<VertexType, IndexType>::getNoOfIndices(void) const
{ {
return m_vecIndices.size(); return m_vecIndices.size();
} }