summaryrefslogtreecommitdiffstats
path: root/lldb/source/Core/SourceManager.cpp
diff options
context:
space:
mode:
authorEd Maste <emaste@freebsd.org>2016-09-21 21:14:31 +0000
committerEd Maste <emaste@freebsd.org>2016-09-21 21:14:31 +0000
commitac77fe3b550dfafc3cde350fc612f272302f93ed (patch)
tree16c8d100a06c08299106d71588d0f5881065979b /lldb/source/Core/SourceManager.cpp
parent228e4abb636ec77baf1c5097754d116235229fd3 (diff)
downloadbcm5719-llvm-ac77fe3b550dfafc3cde350fc612f272302f93ed.tar.gz
bcm5719-llvm-ac77fe3b550dfafc3cde350fc612f272302f93ed.zip
Fix integer sign warning from r282105
llvm-svn: 282112
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 ff0ee7d8246..b7b8dfb11fc 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 (int i = 0; i < column - 1 && i < src_line.length(); ++i)
+ for (size_t i = 0; i < column - 1 && i < src_line.length(); ++i)
return_value += s->PutChar(src_line[i] == '\t' ? '\t' : ' ');
// Now add the caret.
return_value += s->Printf("^\n");
OpenPOWER on IntegriCloud