Changeset 2386:81b47fc5c444 in lemon0.x for lemon/radix_sort.h
 Timestamp:
 03/02/07 19:04:28 (13 years ago)
 Branch:
 default
 Phase:
 public
 Convert:
 svn:c9d7d8f590d60310b91f818b3a526b0e/lemon/trunk@3217
 File:

 1 edited
Legend:
 Unmodified
 Added
 Removed

lemon/radix_sort.h
r2084 r2386 265 265 int byte, Functor functor) { 266 266 const int size = 267 (unsigned int)std::numeric_limits<unsigned char>::max() + 1;267 unsigned(std::numeric_limits<unsigned char>::max()) + 1; 268 268 std::vector<int> counter(size); 269 269 for (int i = 0; i < size; ++i) { … … 291 291 int byte, Functor functor) { 292 292 const int size = 293 (unsigned int)std::numeric_limits<unsigned char>::max() + 1;293 unsigned(std::numeric_limits<unsigned char>::max()) + 1; 294 294 std::vector<int> counter(size); 295 295 for (int i = 0; i < size; ++i) { … … 331 331 bool dir = true; 332 332 std::copy(first, last, buffer); 333 for (int i = 0; i < (int)sizeof(Value)  1; ++i) {333 for (int i = 0; i < int(sizeof(Value))  1; ++i) { 334 334 if (dir) { 335 335 counterIntroSort(buffer, buffer + length, buffer + length, … … 369 369 bool dir = true; 370 370 std::copy(first, last, buffer); 371 for (int i = 0; i < (int)sizeof(Value); ++i) {371 for (int i = 0; i < int(sizeof(Value)); ++i) { 372 372 if (dir) { 373 373 counterIntroSort(buffer, buffer + length,
Note: See TracChangeset
for help on using the changeset viewer.