Opened 9 years ago
Closed 7 years ago
#9077 closed Bugs (invalid)
Loop body never executed in boost::random::mersenne_twister.hpp
| Reported by: | Owned by: | No-Maintainer | |
|---|---|---|---|
| Milestone: | To Be Determined | Component: | random |
| Version: | Boost 1.52.0 | Severity: | Cosmetic |
| Keywords: | Cc: |
Description
line 430
C6294 Loop body never executed
Ill-defined for-loop: initial condition does not satisfy test.
mersenne_twister_engine<UIntType,w,n,m,r,a,u,d,s,b,t,c,l,f>::twist()
{
...
for(std::size_t j = n-1-unroll_extra2; j < n-1; j++) {
UIntType y = (x[j] & upper_mask) | (x[j+1] & lower_mask);
x[j] = x[j-(n-m)] ^ (y >> 1) ^ ((x[j+1]&1) * a);
...
}
Change History (2)
comment:1 by , 9 years ago
comment:2 by , 7 years ago
| Resolution: | → invalid |
|---|---|
| Status: | new → closed |
Note:
See TracTickets
for help on using tickets.

What compiler is this with? This loop is needed in the general case.