From 6310757568fa3e6433435206102bf2d0cc4300e2 Mon Sep 17 00:00:00 2001 From: Saleem Abdulrasool Date: Wed, 23 Jul 2014 01:53:54 +0000 Subject: [PATCH] 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 --- lldb/source/Plugins/ObjectFile/Mach-O/ObjectFileMachO.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lldb/source/Plugins/ObjectFile/Mach-O/ObjectFileMachO.cpp b/lldb/source/Plugins/ObjectFile/Mach-O/ObjectFileMachO.cpp index 6cf5c29..2503567 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(offset)) { error.SetErrorStringWithFormat("unable to seek to offset 0x%" PRIx64 " in '%s'", segment.fileoff, core_file_path.c_str()); break; -- 2.7.4