Skip to content

Commit 8e448da

Browse files
committed
Cast to uint64_t to be clear what we are doing.
1 parent 9fa860c commit 8e448da

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lldb/source/Plugins/ObjectFile/Mach-O/ObjectFileMachO.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1705,7 +1705,7 @@ void ObjectFileMachO::ProcessSegmentCommand(
17051705
// a 4GB boundary. llvm::MachO::section_64 have only 32 bit file offsets
17061706
// for the file offset of the section contents, so we need to track and
17071707
// sections that overflow and adjust the offsets accordingly.
1708-
const uint64_t section_file_offset = sect64.offset + section_offset_adjust;
1708+
const uint64_t section_file_offset = (uint64_t)sect64.offset + section_offset_adjust;
17091709
const uint64_t end_section_offset = (uint64_t)sect64.offset + sect64.size;
17101710
if (end_section_offset >= UINT32_MAX)
17111711
section_offset_adjust += end_section_offset & 0xFFFFFFFF00000000ull;

0 commit comments

Comments
 (0)