mirror of
https://github.com/RPCSX/llvm.git
synced 2025-03-03 18:37:56 +00:00
Fix signed/unsigned warning
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@299194 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
0cd81d8a10
commit
347f8943df
@ -660,7 +660,7 @@ void WasmObjectWriter::writeObject(MCAssembler &Asm,
|
||||
unsigned n;
|
||||
G.InitialValue = decodeSLEB128(p, &n);
|
||||
G.ImportIndex = 0;
|
||||
if (n > end - p)
|
||||
if ((ptrdiff_t)n > end - p)
|
||||
report_fatal_error("global initial value must be valid SLEB128");
|
||||
p += n;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user