Commit 84f1d589 authored by Jan Möbius's avatar Jan Möbius

Fixed more size_t in Heap

git-svn-id: http://www.openmesh.org/svnrepo/OpenMesh/trunk@860 fdac6126-5c0c-442c-9429-916003d36597
parent ea0b3cc5
......@@ -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 <class HeapEntry, class HeapInterface>
void
HeapT<HeapEntry, HeapInterface>::
upheap(unsigned int _idx)
upheap(size_t _idx)
{
HeapEntry h = entry(_idx);
size_t parentIdx;
......@@ -329,11 +329,11 @@ upheap(unsigned int _idx)
template <class HeapEntry, class HeapInterface>
void
HeapT<HeapEntry, HeapInterface>::
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)
{
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment