Skip to content

Commit c40ee5b

Browse files
committed
Fix wrong index in test
1 parent 03c0567 commit c40ee5b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Detectors/CTF/test/test_ctf_io_zdc.cxx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ BOOST_DATA_TEST_CASE(CTFTest, boost_data::make(ANSVersions), ansVersion)
8181
pedsdata[i].ir = irPed;
8282
for (int ic = 0; ic < NChannels; ic++) {
8383
pedsdata[i].data[ic] = gRandom->Integer(0xffff);
84-
pedsdata[i].scaler[ic] = (i > 0 ? pedsdata[i].scaler[ic - 1] : 0) + gRandom->Integer(20);
84+
pedsdata[i].scaler[ic] = (ic > 0 ? pedsdata[i].scaler[ic - 1] : 0) + gRandom->Integer(20);
8585
}
8686
irPed.orbit++;
8787
}

0 commit comments

Comments
 (0)