summaryrefslogtreecommitdiffstats
path: root/lldb/tools/lldb-mi/MICmdCmdSymbol.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'lldb/tools/lldb-mi/MICmdCmdSymbol.cpp')
-rw-r--r--lldb/tools/lldb-mi/MICmdCmdSymbol.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/lldb/tools/lldb-mi/MICmdCmdSymbol.cpp b/lldb/tools/lldb-mi/MICmdCmdSymbol.cpp
index 694fa7488bf..2649389d768 100644
--- a/lldb/tools/lldb-mi/MICmdCmdSymbol.cpp
+++ b/lldb/tools/lldb-mi/MICmdCmdSymbol.cpp
@@ -126,7 +126,7 @@ CMICmdCmdSymbolListLines::Acknowledge(void)
// 0x0000000100000e70: /path/to/file:3[:4]
// ^^^^^^^^^^^^^^^^^^ -- pc
- const MIuint nAddrEndPos = rLine.find(':');
+ const size_t nAddrEndPos = rLine.find(':');
const CMIUtilString strAddr(rLine.substr(0, nAddrEndPos).c_str());
const CMICmnMIValueConst miValueConst(strAddr);
const CMICmnMIValueResult miValueResult("pc", miValueConst);
@@ -134,10 +134,10 @@ CMICmdCmdSymbolListLines::Acknowledge(void)
// 0x0000000100000e70: /path/to/file:3[:4]
// ^ -- line
- const MIuint nLineOrColumnStartPos = rLine.rfind(':');
+ const size_t nLineOrColumnStartPos = rLine.rfind(':');
const CMIUtilString strLineOrColumn(rLine.substr(nLineOrColumnStartPos + 1).c_str());
- const MIuint nPathOrLineStartPos = rLine.rfind(':', nLineOrColumnStartPos - 1);
- const MIuint nPathOrLineLen = nLineOrColumnStartPos - nPathOrLineStartPos - 1;
+ const size_t nPathOrLineStartPos = rLine.rfind(':', nLineOrColumnStartPos - 1);
+ const size_t nPathOrLineLen = nLineOrColumnStartPos - nPathOrLineStartPos - 1;
const CMIUtilString strPathOrLine(rLine.substr(nPathOrLineStartPos + 1, nPathOrLineLen).c_str());
const CMIUtilString strLine(strPathOrLine.IsNumber() ? strPathOrLine : strLineOrColumn);
const CMICmnMIValueConst miValueConst2(strLine);
OpenPOWER on IntegriCloud