diff options
author | 2020-07-01 20:59:04 +0200 | |
---|---|---|
committer | 2020-07-01 20:59:04 +0200 | |
commit | 319be2dfd271ebf81ba3cf651be0b30695ec0d06 (patch) | |
tree | 08d9d10c35c10a495412292f628d41a82ed1873b /src/lib/netlist/plib/pmempool.h | |
parent | 51ba9b48f08202939d06240eaa1dcfc7dfbd7c1c (diff) |
netlist: code maintenance and bug fixes.
* palloc.h/pmatrix2d.h: Fix static_assert warnings at the origin.
* Rework hints to broaden their use and fix NC hint.
* 74377: use NC hint
* plists.h: Fix debugging in MSVC
* Include cleanup: Move everything not needed by netlists from
nl_setup.h into core/setup.h
* Fix some clang tidy warnings
* srcclean
Diffstat (limited to 'src/lib/netlist/plib/pmempool.h')
-rw-r--r-- | src/lib/netlist/plib/pmempool.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/netlist/plib/pmempool.h b/src/lib/netlist/plib/pmempool.h index 60ea24c6641..4e678cb09d6 100644 --- a/src/lib/netlist/plib/pmempool.h +++ b/src/lib/netlist/plib/pmempool.h @@ -85,7 +85,7 @@ namespace plib { } b->m_free -= rs; b->m_num_alloc++; - void *ret = reinterpret_cast<void *>(b->m_data + b->m_cur); + void *ret = reinterpret_cast<void *>(b->m_data + b->m_cur); // NOLINT(cppcoreguidelines-pro-type-reinterpret auto capacity(rs); ret = std::align(align, size, ret, capacity); m_info.insert({ ret, info(b, b->m_cur)}); @@ -142,7 +142,7 @@ namespace plib { m_data_allocated = static_cast<std::uint8_t *>(mp.base_arena().allocate(mp.m_block_align, m_bytes_allocated)); void *r = m_data_allocated; std::align(mp.m_block_align, min_bytes, r, m_bytes_allocated); - m_data = reinterpret_cast<std::uint8_t *>(r); + m_data = reinterpret_cast<std::uint8_t *>(r); // NOLINT(cppcoreguidelines-pro-type-reinterpret } ~block() { |