From 9a8e816485a2d9ecacb417968ee65760acc34e2b Mon Sep 17 00:00:00 2001 From: David Williams Date: Sun, 20 Dec 2015 21:59:27 +0000 Subject: [PATCH] Replaced uint32_t with size_t. --- include/PolyVox/Mesh.h | 2 +- include/PolyVox/Mesh.inl | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/include/PolyVox/Mesh.h b/include/PolyVox/Mesh.h index 42f7c356..ff6a857d 100644 --- a/include/PolyVox/Mesh.h +++ b/include/PolyVox/Mesh.h @@ -55,7 +55,7 @@ namespace PolyVox const VertexType* getRawVertexData(void) const; POLYVOX_DEPRECATED const std::vector& getVertices(void) const; - uint32_t getNoOfIndices(void) const; + size_t getNoOfIndices(void) const; IndexType getIndex(uint32_t index) const; const IndexType* getRawIndexData(void) const; POLYVOX_DEPRECATED const std::vector& getIndices(void) const; diff --git a/include/PolyVox/Mesh.inl b/include/PolyVox/Mesh.inl index 8a3d9312..327d8532 100644 --- a/include/PolyVox/Mesh.inl +++ b/include/PolyVox/Mesh.inl @@ -36,7 +36,7 @@ namespace PolyVox template IndexType Mesh::getNoOfVertices(void) const { - return m_vecVertices.size(); + return static_cast(m_vecVertices.size()); } template @@ -58,7 +58,7 @@ namespace PolyVox } template - uint32_t Mesh::getNoOfIndices(void) const + size_t Mesh::getNoOfIndices(void) const { return m_vecIndices.size(); }