Skip to content

Commit

Permalink
Fix MSVC "32-bit shift implicitly converted to 64 bits" warning. NFCI.
Browse files Browse the repository at this point in the history
llvm-svn: 362927
  • Loading branch information
RKSimon committed Jun 10, 2019
1 parent 386f3a2 commit c6a930e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion llvm/tools/llvm-objcopy/MachO/MachOWriter.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -462,7 +462,7 @@ Error MachOWriter::layout() {
for (auto &Sec : LC.Sections) {
if (!Sec.isVirtualSection()) {
auto FilePaddingSize =
OffsetToAlignment(FileOffsetInSegment, 1 << Sec.Align);
OffsetToAlignment(FileOffsetInSegment, 1ull << Sec.Align);
Sec.Offset = Offset + FileOffsetInSegment + FilePaddingSize;
Sec.Size = Sec.Content.size();
FileOffsetInSegment += FilePaddingSize + Sec.Size;
Expand Down

0 comments on commit c6a930e

Please sign in to comment.