summaryrefslogtreecommitdiff
path: root/lib/Support/PathV2.cpp
diff options
context:
space:
mode:
authorBenjamin Kramer <benny.kra@googlemail.com>2010-12-28 13:05:13 +0000
committerBenjamin Kramer <benny.kra@googlemail.com>2010-12-28 13:05:13 +0000
commit3fee954b3e8cde9dd8166413ba89a7e1b94941a5 (patch)
treec3d0f33b916927581f5bf633c120a12684a13900 /lib/Support/PathV2.cpp
parent92f0fcb6df128ab99a63986b5be00e80fc9f98c6 (diff)
downloadllvm-3fee954b3e8cde9dd8166413ba89a7e1b94941a5.tar.gz
llvm-3fee954b3e8cde9dd8166413ba89a7e1b94941a5.tar.bz2
llvm-3fee954b3e8cde9dd8166413ba89a7e1b94941a5.tar.xz
Fix a signed/unsigned comparison warning.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@122597 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Support/PathV2.cpp')
-rw-r--r--lib/Support/PathV2.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Support/PathV2.cpp b/lib/Support/PathV2.cpp
index 4cfb650a6c..d86c150c33 100644
--- a/lib/Support/PathV2.cpp
+++ b/lib/Support/PathV2.cpp
@@ -676,7 +676,7 @@ error_code has_magic(const Twine &path, const Twine &magic, bool &result) {
std::FILE *file = std::fopen(Path.data(), "rb");
if (file == 0)
return error_code(errno, posix_category());
- int size = ::fread(BufferStorage.data(), 1, Magic.size(), file);
+ size_t size = ::fread(BufferStorage.data(), 1, Magic.size(), file);
if (size != Magic.size()) {
int error = errno;
bool eof = std::feof(file) != 0;