mirror of
https://github.com/intel/llvm.git
synced 2026-01-16 05:32:28 +08:00
sanitise sign comparisons
This is a mechanical change addressing the various sign comparison warnings that are identified by both clang and gcc. This helps cleanup some of the warning spew that occurs during builds. llvm-svn: 205390
This commit is contained in:
@@ -486,7 +486,7 @@ ObjectFile::ReadSectionData (const Section *section, off_t section_offset, void
|
||||
else
|
||||
{
|
||||
const uint64_t section_file_size = section->GetFileSize();
|
||||
if (section_offset < section_file_size)
|
||||
if (section_offset < static_cast<off_t>(section_file_size))
|
||||
{
|
||||
const uint64_t section_bytes_left = section_file_size - section_offset;
|
||||
uint64_t section_dst_len = dst_len;
|
||||
|
||||
Reference in New Issue
Block a user