Skip to content

Commit

Permalink
Fix wrong index in test
Browse files Browse the repository at this point in the history
  • Loading branch information
ktf committed Nov 10, 2023
1 parent 03c0567 commit c40ee5b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Detectors/CTF/test/test_ctf_io_zdc.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ BOOST_DATA_TEST_CASE(CTFTest, boost_data::make(ANSVersions), ansVersion)
pedsdata[i].ir = irPed;
for (int ic = 0; ic < NChannels; ic++) {
pedsdata[i].data[ic] = gRandom->Integer(0xffff);
pedsdata[i].scaler[ic] = (i > 0 ? pedsdata[i].scaler[ic - 1] : 0) + gRandom->Integer(20);
pedsdata[i].scaler[ic] = (ic > 0 ? pedsdata[i].scaler[ic - 1] : 0) + gRandom->Integer(20);
}
irPed.orbit++;
}
Expand Down

0 comments on commit c40ee5b

Please sign in to comment.