From 3fee954b3e8cde9dd8166413ba89a7e1b94941a5 Mon Sep 17 00:00:00 2001 From: Benjamin Kramer Date: Tue, 28 Dec 2010 13:05:13 +0000 Subject: [PATCH] Fix a signed/unsigned comparison warning. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@122597 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/Support/PathV2.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/Support/PathV2.cpp b/lib/Support/PathV2.cpp index 4cfb650a6cc..d86c150c331 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; -- 2.34.1