Fix compiling edata.h with MSVC
At the time an attempt to compile jemalloc 5.3.0 with MSVC 2019 results in the followin error message: > jemalloc/include/jemalloc/internal/edata.h:660: error C4576: a parenthesized type followed by an initializer list is a non-standard explicit type conversion syntax
This commit is contained in:
parent
54eaed1d8b
commit
70d4102f48
@ -656,8 +656,10 @@ edata_ead_comp(const edata_t *a, const edata_t *b) {
|
|||||||
|
|
||||||
static inline edata_cmp_summary_t
|
static inline edata_cmp_summary_t
|
||||||
edata_cmp_summary_get(const edata_t *edata) {
|
edata_cmp_summary_get(const edata_t *edata) {
|
||||||
return (edata_cmp_summary_t){edata_sn_get(edata),
|
edata_cmp_summary_t result;
|
||||||
(uintptr_t)edata_addr_get(edata)};
|
result.sn = edata_sn_get(edata);
|
||||||
|
result.addr = (uintptr_t)edata_addr_get(edata);
|
||||||
|
return result;
|
||||||
}
|
}
|
||||||
|
|
||||||
static inline int
|
static inline int
|
||||||
|
Loading…
Reference in New Issue
Block a user