summaryrefslogtreecommitdiff
path: root/lldb/source/Core/SourceManager.cpp
diff options
context:
space:
mode:
authorEd Maste <emaste@freebsd.org>2016-09-21 22:36:51 +0000
committerEd Maste <emaste@freebsd.org>2016-09-21 22:36:51 +0000
commitf6ed9360b70d6b93b5b7152fc96fb55350f183f3 (patch)
tree351ae21bdd0716cf3e90a060ee662261fb206afc /lldb/source/Core/SourceManager.cpp
parent28bd20993d5caed14e600997c52e7d2337744587 (diff)
Fix for loop sign fix in r282112 for column = 0
Diffstat (limited to 'lldb/source/Core/SourceManager.cpp')
-rw-r--r--lldb/source/Core/SourceManager.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lldb/source/Core/SourceManager.cpp b/lldb/source/Core/SourceManager.cpp
index b7b8dfb11fc..648d20bcfa4 100644
--- a/lldb/source/Core/SourceManager.cpp
+++ b/lldb/source/Core/SourceManager.cpp
@@ -172,7 +172,7 @@ size_t SourceManager::DisplaySourceLinesWithLineNumbersUsingLastFile(
m_last_file_sp->GetLine(line, src_line);
return_value += s->Printf(" \t");
// Insert a space for every non-tab character in the source line.
- for (size_t i = 0; i < column - 1 && i < src_line.length(); ++i)
+ for (size_t i = 0; i + 1 < column && i < src_line.length(); ++i)
return_value += s->PutChar(src_line[i] == '\t' ? '\t' : ' ');
// Now add the caret.
return_value += s->Printf("^\n");