Use a size_t :debug memory total to avoid overflow

This commit is contained in:
Maxime Coste 2024-02-28 21:56:22 +11:00
parent 74ce9f3cfe
commit e64babee8c

View File

@ -1584,7 +1584,7 @@ const CommandDesc debug_cmd = {
} }
else if (parser[0] == "memory") else if (parser[0] == "memory")
{ {
auto total = 0; size_t total = 0;
write_to_debug_buffer("Memory usage:"); write_to_debug_buffer("Memory usage:");
const ColumnCount column_size = 17; const ColumnCount column_size = 17;
write_to_debug_buffer(format("{:17} │{:17} │{:17} │{:17} ", write_to_debug_buffer(format("{:17} │{:17} │{:17} │{:17} ",