forked from OSchip/llvm-project
Fix MSVC "result of 32-bit shift implicitly converted to 64 bits" warning. NFCI.
llvm-svn: 369366
This commit is contained in:
parent
b1bdd97a26
commit
5a28f0ae6e
|
@ -144,7 +144,8 @@ uint64_t MachOLayoutBuilder::layoutSegments() {
|
|||
if (Sec.isVirtualSection()) {
|
||||
Sec.Offset = 0;
|
||||
} else {
|
||||
uint64_t PaddingSize = OffsetToAlignment(SegFileSize, 1 << Sec.Align);
|
||||
uint64_t PaddingSize =
|
||||
OffsetToAlignment(SegFileSize, 1ull << Sec.Align);
|
||||
Sec.Offset = SegOffset + SegFileSize + PaddingSize;
|
||||
Sec.Size = Sec.Content.size();
|
||||
SegFileSize += PaddingSize + Sec.Size;
|
||||
|
|
Loading…
Reference in New Issue