fix warnings
This commit is contained in:
parent
505ea78cae
commit
10c31f9b41
@ -153,8 +153,8 @@ static void mi_printf_amount(int64_t n, int64_t unit, mi_output_fun* out, void*
|
|||||||
const int64_t tens = (n / (divider/10));
|
const int64_t tens = (n / (divider/10));
|
||||||
const long whole = (long)(tens/10);
|
const long whole = (long)(tens/10);
|
||||||
const long frac1 = (long)(tens%10);
|
const long frac1 = (long)(tens%10);
|
||||||
char unitdesc[16];
|
char unitdesc[8];
|
||||||
snprintf(unitdesc, 16, "%s%s%s", magnitude, (base==1024 ? "i" : ""), suffix);
|
snprintf(unitdesc, 8, "%s%s%s", magnitude, (base==1024 ? "i" : ""), suffix);
|
||||||
snprintf(buf, len, "%ld.%ld %-3s", whole, (frac1 < 0 ? -frac1 : frac1), unitdesc);
|
snprintf(buf, len, "%ld.%ld %-3s", whole, (frac1 < 0 ? -frac1 : frac1), unitdesc);
|
||||||
}
|
}
|
||||||
_mi_fprintf(out, arg, (fmt==NULL ? "%11s" : fmt), buf);
|
_mi_fprintf(out, arg, (fmt==NULL ? "%11s" : fmt), buf);
|
||||||
|
@ -4,6 +4,7 @@ This is free software; you can redistribute it and/or modify it under the
|
|||||||
terms of the MIT license. A copy of the license can be found in the file
|
terms of the MIT license. A copy of the license can be found in the file
|
||||||
"LICENSE" at the root of this distribution.
|
"LICENSE" at the root of this distribution.
|
||||||
-----------------------------------------------------------------------------*/
|
-----------------------------------------------------------------------------*/
|
||||||
|
#pragma GCC diagnostic ignored "-Walloc-size-larger-than="
|
||||||
|
|
||||||
/*
|
/*
|
||||||
Testing allocators is difficult as bugs may only surface after particular
|
Testing allocators is difficult as bugs may only surface after particular
|
||||||
|
Loading…
x
Reference in New Issue
Block a user