From c6126e8f7eca8e6f089fdb0cb22c27d6e05d4a1f Mon Sep 17 00:00:00 2001 From: Dan Gohman Date: Thu, 13 Aug 2009 20:32:03 +0000 Subject: [PATCH] Fix a compiler warning about comparing signed with unsigned. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@78933 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/Support/raw_ostream.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/Support/raw_ostream.cpp b/lib/Support/raw_ostream.cpp index 3ea5c9af835..f0090d8d93f 100644 --- a/lib/Support/raw_ostream.cpp +++ b/lib/Support/raw_ostream.cpp @@ -222,7 +222,7 @@ raw_ostream &raw_ostream::write(const char *Ptr, size_t Size) { } void raw_ostream::copy_to_buffer(const char *Ptr, size_t Size) { - assert(Size <= OutBufEnd - OutBufCur && "Buffer overrun!"); + assert(Size <= size_t(OutBufEnd - OutBufCur) && "Buffer overrun!"); // Handle short strings specially, memcpy isn't very good at very short // strings. -- 2.34.1