From 84f1d58949ae71c482e68b72eac9278705682b1a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jan=20M=C3=B6bius?= Date: Wed, 24 Jul 2013 07:58:37 +0000 Subject: [PATCH] Fixed more size_t in Heap git-svn-id: http://www.openmesh.org/svnrepo/OpenMesh/trunk@860 fdac6126-5c0c-442c-9429-916003d36597 --- src/OpenMesh/Tools/Utils/HeapT.hh | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/OpenMesh/Tools/Utils/HeapT.hh b/src/OpenMesh/Tools/Utils/HeapT.hh index c2d51ce1..26365f20 100644 --- a/src/OpenMesh/Tools/Utils/HeapT.hh +++ b/src/OpenMesh/Tools/Utils/HeapT.hh @@ -266,11 +266,11 @@ private: /// Upheap. Establish heap property. - void upheap(unsigned int _idx); + void upheap(size_t _idx); /// Downheap. Establish heap property. - void downheap(unsigned int _idx); + void downheap(size_t _idx); /// Get the entry at index _idx @@ -308,7 +308,7 @@ private: template void HeapT:: -upheap(unsigned int _idx) +upheap(size_t _idx) { HeapEntry h = entry(_idx); size_t parentIdx; @@ -329,11 +329,11 @@ upheap(unsigned int _idx) template void HeapT:: -downheap(unsigned int _idx) +downheap(size_t _idx) { HeapEntry h = entry(_idx); - unsigned int childIdx; - unsigned int s = size(); + size_t childIdx; + size_t s = size(); while(_idx < s) {