From da40d4e4e1bfa705dbf59ebce097ed34b0e46dfc Mon Sep 17 00:00:00 2001 From: Simon Pilgrim Date: Fri, 18 Oct 2019 09:59:31 +0000 Subject: Fix MSVC "result of 32-bit shift implicitly converted to 64 bits" warnings. NFCI. llvm-svn: 375213 --- llvm/lib/Object/MachOUniversal.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'llvm/lib/Object/MachOUniversal.cpp') diff --git a/llvm/lib/Object/MachOUniversal.cpp b/llvm/lib/Object/MachOUniversal.cpp index 3e5be91..a178ecd 100644 --- a/llvm/lib/Object/MachOUniversal.cpp +++ b/llvm/lib/Object/MachOUniversal.cpp @@ -164,7 +164,7 @@ MachOUniversalBinary::MachOUniversalBinary(MemoryBufferRef Source, Error &Err) ") (maximum 2^" + Twine(MaxSectionAlignment) + ")"); return; } - if(A.getOffset() % (1 << A.getAlign()) != 0){ + if(A.getOffset() % (1ull << A.getAlign()) != 0){ Err = malformedError("offset: " + Twine(A.getOffset()) + " for cputype (" + Twine(A.getCPUType()) + ") cpusubtype (" + Twine(A.getCPUSubType() & ~MachO::CPU_SUBTYPE_MASK) + -- cgit v1.1