Fix warning.

llvm-svn: 141597
This commit is contained in:
Michael J. Spencer 2011-10-10 23:36:56 +00:00
parent 192e034aab
commit ee3be4f2a9
1 changed files with 2 additions and 2 deletions

View File

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