[llvm-commits] [llvm] r122597 - /llvm/trunk/lib/Support/PathV2.cpp
Benjamin Kramer
benny.kra at googlemail.com
Tue Dec 28 05:05:13 PST 2010
Author: d0k
Date: Tue Dec 28 07:05:13 2010
New Revision: 122597
URL: http://llvm.org/viewvc/llvm-project?rev=122597&view=rev
Log:
Fix a signed/unsigned comparison warning.
Modified:
llvm/trunk/lib/Support/PathV2.cpp
Modified: llvm/trunk/lib/Support/PathV2.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Support/PathV2.cpp?rev=122597&r1=122596&r2=122597&view=diff
==============================================================================
--- llvm/trunk/lib/Support/PathV2.cpp (original)
+++ llvm/trunk/lib/Support/PathV2.cpp Tue Dec 28 07:05:13 2010
@@ -676,7 +676,7 @@
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;
More information about the llvm-commits
mailing list