mirror of
https://github.com/microsoft/mimalloc.git
synced 2025-05-06 15:29:31 +03:00
remove wrong assertion
This commit is contained in:
parent
471bc768e3
commit
eda16d7c91
1 changed files with 1 additions and 1 deletions
|
@ -63,6 +63,7 @@ typedef struct mi_option_desc_s {
|
||||||
#define MI_DEFAULT_ARENA_EAGER_COMMIT 2
|
#define MI_DEFAULT_ARENA_EAGER_COMMIT 2
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
// in KiB
|
||||||
#ifndef MI_DEFAULT_ARENA_RESERVE
|
#ifndef MI_DEFAULT_ARENA_RESERVE
|
||||||
#if (MI_INTPTR_SIZE>4)
|
#if (MI_INTPTR_SIZE>4)
|
||||||
#define MI_DEFAULT_ARENA_RESERVE 1024L*1024L
|
#define MI_DEFAULT_ARENA_RESERVE 1024L*1024L
|
||||||
|
@ -197,7 +198,6 @@ mi_decl_nodiscard long mi_option_get_clamp(mi_option_t option, long min, long ma
|
||||||
}
|
}
|
||||||
|
|
||||||
mi_decl_nodiscard size_t mi_option_get_size(mi_option_t option) {
|
mi_decl_nodiscard size_t mi_option_get_size(mi_option_t option) {
|
||||||
mi_assert_internal(mi_option_has_size_in_kib(option));
|
|
||||||
const long x = mi_option_get(option);
|
const long x = mi_option_get(option);
|
||||||
size_t size = (x < 0 ? 0 : (size_t)x);
|
size_t size = (x < 0 ? 0 : (size_t)x);
|
||||||
if (mi_option_has_size_in_kib(option)) {
|
if (mi_option_has_size_in_kib(option)) {
|
||||||
|
|
Loading…
Add table
Reference in a new issue