Skip to content

Commit

Permalink
Merge pull request #41941 from iarspider/patch-7
Browse files Browse the repository at this point in the history
Fix UBSAN warning in DataFormats/L1TParticleFlow
  • Loading branch information
cmsbuild authored Jun 13, 2023
2 parents a906ada + 51470e2 commit 7e30290
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion DataFormats/L1TParticleFlow/interface/jets.h
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ namespace l1ct {
}

inline std::array<uint64_t, 2> pack() const {
std::array<uint64_t, 2> packed;
std::array<uint64_t, 2> packed = {{0, 0}};
ap_uint<BITWIDTH> bits = this->pack_ap();
packed[0] = bits;
//packed[1] = bits[slice]; // for when there are more than 64 bits in the word
Expand Down

0 comments on commit 7e30290

Please sign in to comment.