Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

change signed int shifts to unsigned #36905

Merged
merged 1 commit into from Feb 8, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
4 changes: 2 additions & 2 deletions CondFormats/L1TObjects/src/LUT.cc
Expand Up @@ -79,8 +79,8 @@ int l1t::LUT::readHeader_(std::istream& stream) {
std::string version; //currently not doing anything with this
std::string headerField; //currently not doing anything with this
if (lineStream >> headerField >> version >> nrBitsAddress_ >> nrBitsData_) {
addressMask_ = nrBitsAddress_ != 32 ? (0x1 << nrBitsAddress_) - 1 : ~0x0;
dataMask_ = (0x1 << nrBitsData_) - 1;
addressMask_ = nrBitsAddress_ != 32 ? (0x1U << nrBitsAddress_) - 1 : ~0x0;
dataMask_ = (0x1U << nrBitsData_) - 1;
stream.seekg(startPos);
return SUCCESS;
}
Expand Down