Shell: Use correct printf format string for size_t

This commit is contained in:
Daniel Bertalan 2021-07-05 22:24:51 +02:00 committed by Gunnar Beutner
parent 714bd011e1
commit e32692ea68
Notes: sideshowbarker 2024-07-18 10:06:04 +09:00

View file

@ -268,7 +268,7 @@ int Shell::builtin_cdh(int argc, const char** argv)
}
for (ssize_t i = cd_history.size() - 1; i >= 0; --i)
printf("%lu: %s\n", cd_history.size() - i, cd_history.at(i).characters());
printf("%zu: %s\n", cd_history.size() - i, cd_history.at(i).characters());
return 0;
}