Skip to content

Commit

Permalink
mmap: Fix a formatting faux-pas in one of the indexing operations
Browse files Browse the repository at this point in the history
  • Loading branch information
dragonmux committed Jun 3, 2023
1 parent eb4cc6b commit 8359482
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion substrate/mmap
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,8 @@ namespace substrate
template<typename T> SUBSTRATE_NO_DISCARD(substrate::enable_if_t<std::is_same<T, void *>::value, void *>
index(const std::size_t idx) const)
{
if (idx < _len) {
if (idx < _len)
{
// NOLINTNEXTLINE(cppcoreguidelines-pro-type-reinterpret-cast)
auto *const addr {reinterpret_cast<realptr_t>(_addr)};
// NOLINTNEXTLINE(cppcoreguidelines-pro-bounds-pointer-arithmetic)
Expand Down

0 comments on commit 8359482

Please sign in to comment.