mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-02-14 02:33:53 +00:00
Minor code cleanup.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@94848 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
d8a5541a51
commit
e3a1e50680
@ -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;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user