diff options
author | Dan Gohman <gohman@apple.com> | 2010-01-29 21:57:46 +0000 |
---|---|---|
committer | Dan Gohman <gohman@apple.com> | 2010-01-29 21:57:46 +0000 |
commit | e3a1e506809acbddceb6840914879c498d454f26 (patch) | |
tree | fa671d2056e800e3cf95132b41d958b3dc768466 /utils/FileCheck/FileCheck.cpp | |
parent | d8a5541a513695039d1eb83eeced05d51ce9f567 (diff) |
Minor code cleanup.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@94848 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'utils/FileCheck/FileCheck.cpp')
-rw-r--r-- | utils/FileCheck/FileCheck.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/utils/FileCheck/FileCheck.cpp b/utils/FileCheck/FileCheck.cpp index ddc8dc2661..9619f945aa 100644 --- a/utils/FileCheck/FileCheck.cpp +++ b/utils/FileCheck/FileCheck.cpp @@ -378,7 +378,7 @@ void Pattern::PrintFailureInfo(const SourceMgr &SM, StringRef Buffer, double BestQuality = 0; // Use an arbitrary 4k limit on how far we will search. - for (size_t i = 0, e = std::min(4096, int(Buffer.size())); i != e; ++i) { + for (size_t i = 0, e = std::min(size_t(4096), Buffer.size()); i != e; ++i) { if (Buffer[i] == '\n') ++NumLinesForward; |