Skip to content

Commit 65006d4

Browse files
committed
Fix bug found by cppcheck
- `Shifting 32-bit value by 63 bits is undefined behaviour [shiftTooManyBits]`
1 parent d8b84ce commit 65006d4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

DPG/Tasks/AOTTrack/qaEventTrack.cxx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1562,7 +1562,7 @@ void qaEventTrack::fillRecoHistogramsGroupedTracks(const C& collision, const T&
15621562
histos.fill(HIST("Tracks/signed1Pt"), track.signed1Pt());
15631563
histos.fill(HIST("Tracks/snp"), track.snp());
15641564
histos.fill(HIST("Tracks/tgl"), track.tgl());
1565-
for (unsigned int i = 0; i < 64; i++) {
1565+
for (unsigned int i = 0; i < 32; i++) {
15661566
if (track.flags() & (1 << i)) {
15671567
histos.fill(HIST("Tracks/flags"), i);
15681568
}

0 commit comments

Comments
 (0)