diff options
| author | Dan Gohman <gohman@apple.com> | 2009-08-13 20:32:03 +0000 |
|---|---|---|
| committer | Dan Gohman <gohman@apple.com> | 2009-08-13 20:32:03 +0000 |
| commit | e2633357188627cb63ca77de1869e576615799c4 (patch) | |
| tree | 278931dfe55b818d3758aed4a8f932c2f9c40b5a | |
| parent | a24b4dde3ad4699af1d694378389647543ab89a0 (diff) | |
| download | external_llvm-e2633357188627cb63ca77de1869e576615799c4.zip external_llvm-e2633357188627cb63ca77de1869e576615799c4.tar.gz external_llvm-e2633357188627cb63ca77de1869e576615799c4.tar.bz2 | |
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
| -rw-r--r-- | lib/Support/raw_ostream.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Support/raw_ostream.cpp b/lib/Support/raw_ostream.cpp index 3ea5c9a..f0090d8 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. |
