Commit da9ad594 authored by Lynn Garren's avatar Lynn Garren

fix warning in MTwistEngine::showStatus

parent 38e56041
2014-06-06 Lynn Garren <garren@fnal.gov>
* Random/src/MTwistEngine.cc: make sure we don't go past the end of the
array in MTwistEngine::showStatus
2014-05-04 Lynn Garren <garren@fnal.gov>
* Random/src/Random.cc: remove unnecessary inline
......
2014-06-06 Lynn Garren <garren@fnal.gov>
* src/MTwistEngine.cc: make sure we don't go past the end of the
array in MTwistEngine::showStatus
2014-05-04 Lynn Garren <garren@fnal.gov>
* src/Random.cc: remove unnecessary inline
==============================
12.05.14 Release CLHEP-2.1.4.2
==============================
......
......@@ -212,10 +212,14 @@ void MTwistEngine::showStatus() const
std::cout << " Initial seed = " << theSeed << std::endl;
std::cout << " Current index = " << count624 << std::endl;
std::cout << " Array status mt[] = " << std::endl;
for (int i=0; i<624; i+=5) {
// 2014/06/06 L Garren
// the final line has 4 elements, not 5
for (int i=0; i<620; i+=5) {
std::cout << mt[i] << " " << mt[i+1] << " " << mt[i+2] << " "
<< mt[i+3] << " " << mt[i+4] << std::endl;
<< mt[i+3] << " " << mt[i+4] << "\n";
}
std::cout << mt[620] << " " << mt[621] << " " << mt[622] << " "
<< mt[623] << std::endl;
std::cout << "----------------------------------------" << std::endl;
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment