diff options
author | levine <levine@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 1997-03-11 20:16:17 +0000 |
---|---|---|
committer | levine <levine@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 1997-03-11 20:16:17 +0000 |
commit | 1ff5e7aa20d15e5fb3358f1e5f4ef3782dd1e8e5 (patch) | |
tree | 8c366952929583949b5563750b23650a5f7d74b7 /ace/Timer_Heap.cpp | |
parent | 49c2cd7fb6d678af8c5e066a6a5130a68c12bbe6 (diff) | |
download | ATCD-1ff5e7aa20d15e5fb3358f1e5f4ef3782dd1e8e5.tar.gz |
(ctor, grow_heap): changed type of loop index from size_t to int to avoid signed/unsigned comparison
Diffstat (limited to 'ace/Timer_Heap.cpp')
-rw-r--r-- | ace/Timer_Heap.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ace/Timer_Heap.cpp b/ace/Timer_Heap.cpp index 6958a5cd555..fc15177b343 100644 --- a/ace/Timer_Heap.cpp +++ b/ace/Timer_Heap.cpp @@ -46,7 +46,7 @@ ACE_Timer_Heap::ACE_Timer_Heap (size_t size, // Initialize the "freelist," which uses negative values to // distinguish freelist elements from "pointers" into the <heap_> // array. - for (size_t i = 0; i < size; i++) + for (int i = 0; i < size; i++) this->timer_ids_[i] = -(i + 1); if (preallocate) @@ -294,7 +294,7 @@ ACE_Timer_Heap::grow_heap (void) this->timer_ids_ = new_timer_ids; // and add the new elements to the end of the "freelist" - for (size_t i = this->max_size_; i < new_size; i++) + for (int i = this->max_size_; i < new_size; i++) this->timer_ids_[i] = -(i + 1); // Grow the preallocation array (if using preallocation) |