Debugger: Improve some for-loops definitions (PR #1084)

This commit is contained in:
Kelvin Lee
2022-04-17 20:32:03 +10:00
committed by GitHub
parent f948a9491a
commit a5e8ee31a3
3 changed files with 57 additions and 95 deletions
+1 -3
View File
@@ -333,9 +333,7 @@ Update_t CmdSymbolsInfo (int nArgs)
//sprintf( sText, " Symbols Main: %s%d%s User: %s%d%s Source: %s%d%s"
// "Main:# Basic:# Asm:# User1:# User2:# Src1:# Src2:# Dos:# Prodos:#
int bTable = 1;
int iTable = 0;
for ( ; bTable <= bDisplaySymbolTables; iTable++, bTable <<= 1 )
for ( int iTable = 0, bTable = 1; bTable <= bDisplaySymbolTables; iTable++, bTable <<= 1 )
{
if ( bDisplaySymbolTables & bTable )
{