1
0
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:
Oliver Stannard 2020-07-08 11:24:03 +01:00
parent e7f8cb8118
commit d3a77878d6

View File

@ -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;
}