mirror of
https://github.com/microsoft/mimalloc.git
synced 2025-05-04 22:49:32 +03:00
Read-only strings should be const char *
This commit is contained in:
parent
236cd2e65c
commit
59a714725b
1 changed files with 1 additions and 1 deletions
|
@ -123,7 +123,7 @@ static void mi_stats_add(mi_stats_t* stats, const mi_stats_t* src) {
|
|||
static void mi_printf_amount(int64_t n, int64_t unit, FILE* out, const char* fmt) {
|
||||
char buf[32];
|
||||
int len = 32;
|
||||
char* suffix = (unit <= 0 ? " " : "b");
|
||||
const char* suffix = (unit <= 0 ? " " : "b");
|
||||
double base = (unit == 0 ? 1000.0 : 1024.0);
|
||||
if (unit>0) n *= unit;
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue