mirror of
https://github.com/RGBCube/serenity
synced 2025-05-22 19:45:08 +00:00
Shell: Use size_t for SH_DEBUG vector iteration
We missed this when switching to size_t for vector sizing as this code is not normally compiled.
This commit is contained in:
parent
ec6e55cfc6
commit
d806dfe801
1 changed files with 3 additions and 3 deletions
|
@ -755,15 +755,15 @@ static int run_command(const String& cmd)
|
|||
|
||||
#ifdef SH_DEBUG
|
||||
for (auto& command : commands) {
|
||||
for (int i = 0; i < command.subcommands.size(); ++i) {
|
||||
for (int j = 0; j < i; ++j)
|
||||
for (size_t i = 0; i < command.subcommands.size(); ++i) {
|
||||
for (size_t j = 0; j < i; ++j)
|
||||
dbgprintf(" ");
|
||||
for (auto& arg : command.subcommands[i].args) {
|
||||
dbgprintf("<%s> ", arg.characters());
|
||||
}
|
||||
dbgprintf("\n");
|
||||
for (auto& redirecton : command.subcommands[i].redirections) {
|
||||
for (int j = 0; j < i; ++j)
|
||||
for (size_t j = 0; j < i; ++j)
|
||||
dbgprintf(" ");
|
||||
dbgprintf(" ");
|
||||
switch (redirecton.type) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue