Casting index to int
authordeba
Thu, 20 Dec 2007 15:13:06 +0000
changeset 25452bed3e806e1e
parent 2544 5143b01bf1d5
child 2546 b5eba564bb60
Casting index to int
lemon/random.h
     1.1 --- a/lemon/random.h	Wed Dec 19 22:23:28 2007 +0000
     1.2 +++ b/lemon/random.h	Thu Dec 20 15:13:06 2007 +0000
     1.3 @@ -257,7 +257,7 @@
     1.4            --curr;
     1.5          }
     1.6          curr[0] = (((curr[0] & hiMask) | (curr[length - 1] & loMask)) >> 1) ^
     1.7 -          curr[length - shift] ^ mask[curr[length - 1] & 1ul];
     1.8 +          curr[length - shift] ^ mask[int(curr[length - 1] & 1ul)];
     1.9  
    1.10        }
    1.11