summaryrefslogtreecommitdiffstats
path: root/lldb/source/Plugins/ObjectFile
diff options
context:
space:
mode:
authorSaleem Abdulrasool <compnerd@compnerd.org>2014-07-23 01:53:54 +0000
committerSaleem Abdulrasool <compnerd@compnerd.org>2014-07-23 01:53:54 +0000
commit6310757568fa3e6433435206102bf2d0cc4300e2 (patch)
tree1bef5903386fe2cc8d86ef1cb8fc2059eb773460 /lldb/source/Plugins/ObjectFile
parentb5c128b3c79eb3557996fabbb17031aba26ebba3 (diff)
downloadbcm5719-llvm-6310757568fa3e6433435206102bf2d0cc4300e2.tar.gz
bcm5719-llvm-6310757568fa3e6433435206102bf2d0cc4300e2.zip
Plugins: silence a few more signed comparision warnings
Address a few signed-compare warnings that were triggered on GCC 4.8.2. llvm-svn: 213716
Diffstat (limited to 'lldb/source/Plugins/ObjectFile')
-rw-r--r--lldb/source/Plugins/ObjectFile/Mach-O/ObjectFileMachO.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/lldb/source/Plugins/ObjectFile/Mach-O/ObjectFileMachO.cpp b/lldb/source/Plugins/ObjectFile/Mach-O/ObjectFileMachO.cpp
index 6cf5c299627..250356756d5 100644
--- a/lldb/source/Plugins/ObjectFile/Mach-O/ObjectFileMachO.cpp
+++ b/lldb/source/Plugins/ObjectFile/Mach-O/ObjectFileMachO.cpp
@@ -5426,7 +5426,8 @@ ObjectFileMachO::SaveCore (const lldb::ProcessSP &process_sp,
// Now write the file data for all memory segments in the process
for (const auto &segment : segment_load_commands)
{
- if (segment.fileoff != core_file.SeekFromStart(segment.fileoff))
+ off_t offset = core_file.SeekFromStart(segment.fileoff);
+ if (offset < 0 || segment.fileoff != static_cast<uint64_t>(offset))
{
error.SetErrorStringWithFormat("unable to seek to offset 0x%" PRIx64 " in '%s'", segment.fileoff, core_file_path.c_str());
break;
OpenPOWER on IntegriCloud