Fix warning.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@141597 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Michael J. Spencer
2011-10-10 23:36:56 +00:00
parent db7334dbc5
commit 15565ad758

View File

@ -487,11 +487,11 @@ error_code MachOObjectFile::getSectionAlignment(DataRefImpl DRI,
if (is64BitLoadCommand(MachOObj, DRI)) { if (is64BitLoadCommand(MachOObj, DRI)) {
InMemoryStruct<macho::Section64> Sect; InMemoryStruct<macho::Section64> Sect;
getSection64(DRI, Sect); getSection64(DRI, Sect);
Result = 1 << Sect->Align; Result = uint64_t(1) << Sect->Align;
} else { } else {
InMemoryStruct<macho::Section> Sect; InMemoryStruct<macho::Section> Sect;
getSection(DRI, Sect); getSection(DRI, Sect);
Result = 1 << Sect->Align; Result = uint64_t(1) << Sect->Align;
} }
return object_error::success; return object_error::success;
} }