mirror of https://github.com/stella-emu/stella.git
Fix minor warning from cppcheck.
This commit is contained in:
parent
d3766f0737
commit
071e8f7eb1
|
@ -849,12 +849,12 @@ const Debugger::FunctionDefMap Debugger::getFunctionDefMap() const
|
||||||
string Debugger::builtinHelp() const
|
string Debugger::builtinHelp() const
|
||||||
{
|
{
|
||||||
ostringstream buf;
|
ostringstream buf;
|
||||||
size_t len = 0, c_maxlen = 0, i_maxlen = 0;
|
size_t c_maxlen = 0, i_maxlen = 0;
|
||||||
|
|
||||||
// Get column widths for aligned output (functions)
|
// Get column widths for aligned output (functions)
|
||||||
for(const auto& func: ourBuiltinFunctions)
|
for(const auto& func: ourBuiltinFunctions)
|
||||||
{
|
{
|
||||||
len = func.name.size();
|
size_t len = func.name.size();
|
||||||
if(len > c_maxlen) c_maxlen = len;
|
if(len > c_maxlen) c_maxlen = len;
|
||||||
len = func.defn.size();
|
len = func.defn.size();
|
||||||
if(len > i_maxlen) i_maxlen = len;
|
if(len > i_maxlen) i_maxlen = len;
|
||||||
|
@ -875,7 +875,7 @@ string Debugger::builtinHelp() const
|
||||||
c_maxlen = 0;
|
c_maxlen = 0;
|
||||||
for(const auto& reg: ourPseudoRegisters)
|
for(const auto& reg: ourPseudoRegisters)
|
||||||
{
|
{
|
||||||
len = reg.name.size();
|
const size_t len = reg.name.size();
|
||||||
if(len > c_maxlen) c_maxlen = len;
|
if(len > c_maxlen) c_maxlen = len;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue