mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-22 10:42:39 +01:00
[Support] Fix signed/unsigned comparison warning
This commit is contained in:
parent
e7f8cb8118
commit
d3a77878d6
@ -82,7 +82,7 @@ void formatted_raw_ostream::UpdatePosition(const char *Ptr, size_t Size) {
|
||||
// the display width until we see the rest of the code point. Stash the
|
||||
// bytes we do have, so that we can reconstruct the whole code point later,
|
||||
// even if the buffer is being flushed.
|
||||
if ((End - Ptr) < NumBytes) {
|
||||
if ((unsigned)(End - Ptr) < NumBytes) {
|
||||
PartialUTF8Char = StringRef(Ptr, End - Ptr);
|
||||
return;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user