projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
92f0fcb
)
Fix a signed/unsigned comparison warning.
author
Benjamin Kramer
<benny.kra@googlemail.com>
Tue, 28 Dec 2010 13:05:13 +0000
(13:05 +0000)
committer
Benjamin Kramer
<benny.kra@googlemail.com>
Tue, 28 Dec 2010 13:05:13 +0000
(13:05 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@122597
91177308
-0d34-0410-b5e6-
96231b3b80d8
lib/Support/PathV2.cpp
patch
|
blob
|
history
diff --git
a/lib/Support/PathV2.cpp
b/lib/Support/PathV2.cpp
index 4cfb650a6cc8984c96e78450c7f0eaf40486ea94..d86c150c3319f5ae27200df2d27f66ef8dcf349b 100644
(file)
--- 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());
-
in
t 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;