COIN-OR::LEMON - Graph Library

Changeset 62:4790635473ef in lemon-main


Ignore:
Timestamp:
01/25/08 15:23:28 (17 years ago)
Author:
Balazs Dezso <deba@…>
Branch:
default
Phase:
public
Message:

Array range check warning workaround in random.h

The g++-4.2.1 preferred by OpenSUSE has a bug with array range cheking

File:
1 edited

Legend:

Unmodified
Added
Removed
  • lemon/random.h

    r49 r62  
    255255          --curr;
    256256        }
    257         curr[0] = (((curr[0] & hiMask) | (curr[length - 1] & loMask)) >> 1) ^
     257        state[0] = (((state[0] & hiMask) | (curr[length - 1] & loMask)) >> 1) ^
    258258          curr[length - shift] ^ mask[curr[length - 1] & 1ul];
    259259
Note: See TracChangeset for help on using the changeset viewer.