File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed
source/common/unified_malloc_framework/src Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change 81
81
#define DELETED_LIFE 16
82
82
83
83
#define SLICE 4
84
- #define NIB ((1UL << SLICE) - 1)
84
+ #define NIB ((1ULL << SLICE) - 1)
85
85
#define SLNODES (1 << SLICE)
86
86
87
87
typedef uintptr_t word ;
@@ -156,7 +156,7 @@ static inline bool is_leaf(struct critnib_node *n) { return (word)n & 1; }
156
156
* internal: to_leaf -- untag a leaf pointer
157
157
*/
158
158
static inline struct critnib_leaf * to_leaf (struct critnib_node * n ) {
159
- return (void * )((word )n & ~1UL );
159
+ return (void * )((word )n & ~1ULL );
160
160
}
161
161
162
162
/*
Original file line number Diff line number Diff line change @@ -43,7 +43,7 @@ static __inline unsigned char util_mssb_index(long long value) {
43
43
// There is no good way to do atomic_load on windows...
44
44
#define util_atomic_load_acquire (object , dest ) \
45
45
do { \
46
- *dest = InterlockedOr64Acquire((LONG64 volatile *)dest , 0); \
46
+ *dest = InterlockedOr64Acquire((LONG64 volatile *)object , 0); \
47
47
} while (0)
48
48
49
49
#define util_atomic_store_release (object , desired ) \
You can’t perform that action at this time.
0 commit comments