projects
/
platform
/
upstream
/
llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
24c073d
)
Fix for loop sign fix in r282112 for column = 0
author
Ed Maste
<emaste@freebsd.org>
Wed, 21 Sep 2016 22:36:51 +0000
(22:36 +0000)
committer
Ed Maste
<emaste@freebsd.org>
Wed, 21 Sep 2016 22:36:51 +0000
(22:36 +0000)
llvm-svn: 282119
lldb/source/Core/SourceManager.cpp
patch
|
blob
|
history
diff --git
a/lldb/source/Core/SourceManager.cpp
b/lldb/source/Core/SourceManager.cpp
index
b7b8dfb
..
648d20b
100644
(file)
--- 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");