Fixed more size_t in Heap
git-svn-id: http://www.openmesh.org/svnrepo/OpenMesh/trunk@860 fdac6126-5c0c-442c-9429-916003d36597
This commit is contained in:
@@ -266,11 +266,11 @@ private:
|
|||||||
|
|
||||||
|
|
||||||
/// Upheap. Establish heap property.
|
/// Upheap. Establish heap property.
|
||||||
void upheap(unsigned int _idx);
|
void upheap(size_t _idx);
|
||||||
|
|
||||||
|
|
||||||
/// Downheap. Establish heap property.
|
/// Downheap. Establish heap property.
|
||||||
void downheap(unsigned int _idx);
|
void downheap(size_t _idx);
|
||||||
|
|
||||||
|
|
||||||
/// Get the entry at index _idx
|
/// Get the entry at index _idx
|
||||||
@@ -308,7 +308,7 @@ private:
|
|||||||
template <class HeapEntry, class HeapInterface>
|
template <class HeapEntry, class HeapInterface>
|
||||||
void
|
void
|
||||||
HeapT<HeapEntry, HeapInterface>::
|
HeapT<HeapEntry, HeapInterface>::
|
||||||
upheap(unsigned int _idx)
|
upheap(size_t _idx)
|
||||||
{
|
{
|
||||||
HeapEntry h = entry(_idx);
|
HeapEntry h = entry(_idx);
|
||||||
size_t parentIdx;
|
size_t parentIdx;
|
||||||
@@ -329,11 +329,11 @@ upheap(unsigned int _idx)
|
|||||||
template <class HeapEntry, class HeapInterface>
|
template <class HeapEntry, class HeapInterface>
|
||||||
void
|
void
|
||||||
HeapT<HeapEntry, HeapInterface>::
|
HeapT<HeapEntry, HeapInterface>::
|
||||||
downheap(unsigned int _idx)
|
downheap(size_t _idx)
|
||||||
{
|
{
|
||||||
HeapEntry h = entry(_idx);
|
HeapEntry h = entry(_idx);
|
||||||
unsigned int childIdx;
|
size_t childIdx;
|
||||||
unsigned int s = size();
|
size_t s = size();
|
||||||
|
|
||||||
while(_idx < s)
|
while(_idx < s)
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user