mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-06-24 11:11:51 +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
Notes:
sideshowbarker
2024-07-19 08:11:39 +09:00
Author: https://github.com/shannonbooth
Commit: d806dfe801
Pull-request: https://github.com/SerenityOS/serenity/pull/1496
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