mirror of
https://github.com/microsoft/mimalloc.git
synced 2025-07-12 14:18:42 +03:00
fix warnings at high warning level in msvc
This commit is contained in:
parent
5de851a84d
commit
fdfa6ed260
6 changed files with 6 additions and 6 deletions
|
@ -71,7 +71,7 @@ bool _mi_os_is_huge_reserved(void* p);
|
|||
typedef uintptr_t mi_region_info_t;
|
||||
|
||||
static inline mi_region_info_t mi_region_info_create(void* start, bool is_large, bool is_committed) {
|
||||
return ((uintptr_t)start | ((is_large?1:0) << 1) | (is_committed?1:0));
|
||||
return ((uintptr_t)start | ((uintptr_t)(is_large?1:0) << 1) | (is_committed?1:0));
|
||||
}
|
||||
|
||||
static inline void* mi_region_info_read(mi_region_info_t info, bool* is_large, bool* is_committed) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue