mirror of
https://github.com/microsoft/mimalloc.git
synced 2025-05-06 15:29:31 +03:00
fix UINT32_MAX constant (see issue #913)
This commit is contained in:
parent
265767766b
commit
5eb8c752f7
1 changed files with 1 additions and 1 deletions
|
@ -22,7 +22,7 @@ terms of the MIT license. A copy of the license can be found in the file
|
||||||
#elif (MI_INTPTR_SIZE > 4)
|
#elif (MI_INTPTR_SIZE > 4)
|
||||||
#define MI_SEGMENT_MAP_MAX_ADDRESS (48*1024ULL*MI_GiB) // 48 TiB
|
#define MI_SEGMENT_MAP_MAX_ADDRESS (48*1024ULL*MI_GiB) // 48 TiB
|
||||||
#else
|
#else
|
||||||
#define MI_SEGMENT_MAP_MAX_ADDRESS (MAX_UINT32)
|
#define MI_SEGMENT_MAP_MAX_ADDRESS (UINT32_MAX)
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#define MI_SEGMENT_MAP_PART_SIZE (MI_INTPTR_SIZE*MI_KiB - 128) // 128 > sizeof(mi_memid_t) !
|
#define MI_SEGMENT_MAP_PART_SIZE (MI_INTPTR_SIZE*MI_KiB - 128) // 128 > sizeof(mi_memid_t) !
|
||||||
|
|
Loading…
Add table
Reference in a new issue