Fix "result of 32-bit shift implicitly converted to 64 bits" MSVC warning. NFC.

This commit is contained in:
Simon Pilgrim 2022-04-07 11:19:54 +01:00
parent 6b15157610
commit 156b94c2d3
1 changed files with 1 additions and 1 deletions

View File

@ -1430,7 +1430,7 @@ void DeduplicatedCStringSection::finalizeContents() {
assert(it != stringOffsetMap.end());
StringOffset &offsetInfo = it->second;
if (offsetInfo.outSecOff == UINT64_MAX) {
offsetInfo.outSecOff = alignTo(size, 1 << offsetInfo.trailingZeros);
offsetInfo.outSecOff = alignTo(size, 1ULL << offsetInfo.trailingZeros);
size = offsetInfo.outSecOff + s.size();
}
isec->pieces[i].outSecOff = offsetInfo.outSecOff;