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 | c04a00a0b02771b6d626d571745eab6578d40b46 (patch) | |
| tree | 7b1fd2c2660d4fa875b082cae7b88132cb3d430e /llvm/lib/Support | |
| parent | 153292e55df6f03cd3fc7c19c8a1370ae270f9fd (diff) | |
| download | bcm5719-llvm-c04a00a0b02771b6d626d571745eab6578d40b46.tar.gz bcm5719-llvm-c04a00a0b02771b6d626d571745eab6578d40b46.zip | |
Fix a compiler warning about comparing signed with unsigned.
llvm-svn: 78933
Diffstat (limited to 'llvm/lib/Support')
| -rw-r--r-- | llvm/lib/Support/raw_ostream.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Support/raw_ostream.cpp b/llvm/lib/Support/raw_ostream.cpp index 3ea5c9af835..f0090d8d93f 100644 --- a/llvm/lib/Support/raw_ostream.cpp +++ b/llvm/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. |

