Avoid warning in random.h (backport of chgset 4790635473ef from lemon-1.0) lemon-0.7
authoralpar
Sat, 19 Apr 2008 13:04:51 +0000
changeset 2608207efbaea269
parent 2607 78e8de179fe2
child 2609 c36f00f19f2b
Avoid warning in random.h (backport of chgset 4790635473ef from lemon-1.0)
lemon/random.h
     1.1 --- a/lemon/random.h	Thu Apr 17 21:46:06 2008 +0000
     1.2 +++ b/lemon/random.h	Sat Apr 19 13:04:51 2008 +0000
     1.3 @@ -256,7 +256,7 @@
     1.4              curr[length - shift] ^ mask[curr[-1] & 1ul];
     1.5            --curr;
     1.6          }
     1.7 -        curr[0] = (((curr[0] & hiMask) | (curr[length - 1] & loMask)) >> 1) ^
     1.8 +        state[0] = (((state[0] & hiMask) | (curr[length - 1] & loMask)) >> 1) ^
     1.9            curr[length - shift] ^ mask[int(curr[length - 1] & 1ul)];
    1.10  
    1.11        }