Use a size_t :debug memory total to avoid overflow
This commit is contained in:
parent
74ce9f3cfe
commit
e64babee8c
|
@ -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} ",
|
||||||
|
|
Loading…
Reference in New Issue
Block a user