COIN-OR::LEMON - Graph Library

Changeset 2477:b5e1f017ff41 in lemon-0.x


Ignore:
Timestamp:
09/28/07 14:14:18 (12 years ago)
Author:
Balazs Dezso
Branch:
default
Phase:
public
Convert:
svn:c9d7d8f5-90d6-0310-b91f-818b3a526b0e/lemon/trunk@3316
Message:

Bug fix in most significant digit calculation

File:
1 edited

Legend:

Unmodified
Added
Removed
  • lemon/radix_sort.h

    r2391 r2477  
    140140    mask = 0; max_digit = 0;
    141141    for (it = first; it != cut; ++it) {
    142       if ((mask | functor(*it)) != ~0) {
     142      while ((mask | functor(*it)) != ~0) {
    143143        ++max_digit;
    144144        mask <<= 1;
     
    150150    mask = ~0; max_digit = 0;
    151151    for (it = cut; it != last; ++it) {
    152       if (mask & functor(*it)) {
     152      while (mask & functor(*it)) {
    153153        ++max_digit;
    154154        mask <<= 1;
Note: See TracChangeset for help on using the changeset viewer.