diff options
author | Yuriy Chernyshov <thegeorg@yandex-team.com> | 2022-05-09 15:36:49 +0300 |
---|---|---|
committer | Alexander Lapenkov <lapenkov.a@yandex.ru> | 2022-05-09 14:51:07 -0700 |
commit | 70d4102f48dce2d5755e9139a15eeec606f97bff (patch) | |
tree | def115c3b587c6d61784851e02995f1d1cde220c | |
parent | 54eaed1d8b56b1aa528be3bdd1877e59c56fa90c (diff) | |
download | jemalloc-70d4102f48dce2d5755e9139a15eeec606f97bff.tar.gz |
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
-rw-r--r-- | include/jemalloc/internal/edata.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/include/jemalloc/internal/edata.h b/include/jemalloc/internal/edata.h index af039ea7..e77a55e6 100644 --- a/include/jemalloc/internal/edata.h +++ b/include/jemalloc/internal/edata.h @@ -656,8 +656,10 @@ edata_ead_comp(const edata_t *a, const edata_t *b) { static inline edata_cmp_summary_t edata_cmp_summary_get(const edata_t *edata) { - return (edata_cmp_summary_t){edata_sn_get(edata), - (uintptr_t)edata_addr_get(edata)}; + edata_cmp_summary_t result; + result.sn = edata_sn_get(edata); + result.addr = (uintptr_t)edata_addr_get(edata); + return result; } static inline int |