[llvm-commits] [llvm] r78933 - /llvm/trunk/lib/Support/raw_ostream.cpp
Dan Gohman
gohman at apple.com
Thu Aug 13 13:32:04 PDT 2009
Author: djg
Date: Thu Aug 13 15:32:03 2009
New Revision: 78933
URL: http://llvm.org/viewvc/llvm-project?rev=78933&view=rev
Log:
Fix a compiler warning about comparing signed with unsigned.
Modified:
llvm/trunk/lib/Support/raw_ostream.cpp
Modified: llvm/trunk/lib/Support/raw_ostream.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Support/raw_ostream.cpp?rev=78933&r1=78932&r2=78933&view=diff
==============================================================================
--- llvm/trunk/lib/Support/raw_ostream.cpp (original)
+++ llvm/trunk/lib/Support/raw_ostream.cpp Thu Aug 13 15:32:03 2009
@@ -222,7 +222,7 @@
}
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.
More information about the llvm-commits
mailing list