gravatar
deba@inf.elte.hu
deba@inf.elte.hu
Array range check warning workaround in random.h The g++-4.2.1 preferred by OpenSUSE has a bug with array range cheking
0 1 0
default
1 file changed with 1 insertions and 1 deletions:
↑ Collapse diff ↑
Ignore white space 4 line context
... ...
@@ -255,5 +255,5 @@
255 255
          --curr;
256 256
        }
257
        curr[0] = (((curr[0] & hiMask) | (curr[length - 1] & loMask)) >> 1) ^
257
        state[0] = (((state[0] & hiMask) | (curr[length - 1] & loMask)) >> 1) ^
258 258
          curr[length - shift] ^ mask[curr[length - 1] & 1ul];
259 259

	
0 comments (0 inline)