From 268434a7a8ae12124dd33fcccbc5abd526d4b1ad Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jan=20M=C3=B6bius?= Date: Wed, 24 Jul 2013 06:42:30 +0000 Subject: [PATCH] Fixed more size_t git-svn-id: http://www.openmesh.org/svnrepo/OpenMesh/trunk@857 fdac6126-5c0c-442c-9429-916003d36597 --- src/OpenMesh/Tools/Utils/HeapT.hh | 4 ++-- src/OpenMesh/Tools/Utils/MeshCheckerT.cc | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/OpenMesh/Tools/Utils/HeapT.hh b/src/OpenMesh/Tools/Utils/HeapT.hh index 0dadf24c..7e36a9b1 100644 --- a/src/OpenMesh/Tools/Utils/HeapT.hh +++ b/src/OpenMesh/Tools/Utils/HeapT.hh @@ -274,7 +274,7 @@ private: /// Get the entry at index _idx - inline HeapEntry entry(unsigned int _idx) const + inline HeapEntry entry(size_t _idx) const { assert(_idx < size()); return (Base::operator[](_idx)); @@ -282,7 +282,7 @@ private: /// Set entry _h to index _idx and update _h's heap position. - inline void entry(unsigned int _idx, HeapEntry _h) + inline void entry(size_t _idx, HeapEntry _h) { assert(_idx < size()); Base::operator[](_idx) = _h; diff --git a/src/OpenMesh/Tools/Utils/MeshCheckerT.cc b/src/OpenMesh/Tools/Utils/MeshCheckerT.cc index c233a750..52edbddc 100644 --- a/src/OpenMesh/Tools/Utils/MeshCheckerT.cc +++ b/src/OpenMesh/Tools/Utils/MeshCheckerT.cc @@ -146,7 +146,7 @@ check(unsigned int _targets, std::ostream& _os) typename Mesh::ConstHalfedgeIter h_it(mesh_.halfedges_begin()), h_end(mesh_.halfedges_end()); typename Mesh::HalfedgeHandle hh, hstart, hhh; - unsigned int count, n_halfedges = 2*mesh_.n_edges(); + size_t count, n_halfedges = 2*mesh_.n_edges(); for (; h_it != h_end; ++h_it) {