Changeset 2386:81b47fc5c444 in lemon-0.x for lemon/bucket_heap.h
- Timestamp:
- 03/02/07 19:04:28 (17 years ago)
- Branch:
- default
- Phase:
- public
- Convert:
- svn:c9d7d8f5-90d6-0310-b91f-818b3a526b0e/lemon/trunk@3217
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
lemon/bucket_heap.h
r2263 r2386 101 101 102 102 void relocate_last(int idx) { 103 if (idx + 1 < (int)data.size()) {103 if (idx + 1 < int(data.size())) { 104 104 data[idx] = data.back(); 105 105 if (data[idx].prev != -1) { … … 128 128 129 129 void lace(int idx) { 130 if ( (int)first.size() <= data[idx].value) {130 if (int(first.size()) <= data[idx].value) { 131 131 first.resize(data[idx].value + 1, -1); 132 132 } … … 355 355 356 356 void relocate_last(int idx) { 357 if (idx + 1 != (int)data.size()) {357 if (idx + 1 != int(data.size())) { 358 358 data[idx] = data.back(); 359 359 if (data[idx].prev != -1) { … … 382 382 383 383 void lace(int idx) { 384 if ( (int)first.size() <= data[idx].value) {384 if (int(first.size()) <= data[idx].value) { 385 385 first.resize(data[idx].value + 1, -1); 386 386 } … … 608 608 } 609 609 index[i] = idx; 610 if (p >= (int)first.size()) first.resize(p + 1, -1);610 if (p >= int(first.size())) first.resize(p + 1, -1); 611 611 data[idx].next = first[p]; 612 612 first[p] = idx; … … 751 751 } 752 752 index[i] = idx; 753 if (p >= (int)first.size()) first.resize(p + 1, -1);753 if (p >= int(first.size())) first.resize(p + 1, -1); 754 754 data[idx].next = first[p]; 755 755 first[p] = idx;
Note: See TracChangeset
for help on using the changeset viewer.