Fix MSVC signed/unsigned comparison warning. NFCI.

llvm-svn: 324171
This commit is contained in:
Simon Pilgrim 2018-02-03 12:38:56 +00:00
parent 3e1478f866
commit 3d5ee7aa41
1 changed files with 1 additions and 1 deletions

View File

@ -114,7 +114,7 @@ Error DWARFDebugRnglists::extract(DWARFDataExtractor Data,
"offset 0x%" PRIx32,
*OffsetPtr - 1);
case dwarf::DW_RLE_start_end: {
if (End - *OffsetPtr < HeaderData.AddrSize * 2)
if ((End - *OffsetPtr) < unsigned(HeaderData.AddrSize * 2))
return createError("insufficient space remaining in table for "
"DW_RLE_start_end encoding "
"at offset 0x%" PRIx32,