[Lemon-commits] alpar: r3492 - lemon/trunk/lemon

Lemon SVN svn at lemon.cs.elte.hu
Sat Apr 19 15:04:51 CEST 2008


Author: alpar
Date: Sat Apr 19 15:04:51 2008
New Revision: 3492

Modified:
   lemon/trunk/lemon/random.h

Log:
Avoid warning in random.h (backport of chgset 4790635473ef from lemon-1.0)

Modified: lemon/trunk/lemon/random.h
==============================================================================
--- lemon/trunk/lemon/random.h	(original)
+++ lemon/trunk/lemon/random.h	Sat Apr 19 15:04:51 2008
@@ -256,7 +256,7 @@
             curr[length - shift] ^ mask[curr[-1] & 1ul];
           --curr;
         }
-        curr[0] = (((curr[0] & hiMask) | (curr[length - 1] & loMask)) >> 1) ^
+        state[0] = (((state[0] & hiMask) | (curr[length - 1] & loMask)) >> 1) ^
           curr[length - shift] ^ mask[int(curr[length - 1] & 1ul)];
 
       }



More information about the Lemon-commits mailing list