Skip to content

Commit

Permalink
More style and warning fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
Mr-Wiseguy committed Oct 17, 2024
1 parent 9fec82e commit 5ff5157
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions tests/internal.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ using FragmentOffset = uint32_t;
inline auto GET_FRAGMENT(const internal::O1HeapInstance* const heap_instance, FragmentOffset offset)
-> internal::Fragment*
{
return reinterpret_cast<internal::Fragment*>(reinterpret_cast<const char* const>(heap_instance) + offset);
return reinterpret_cast<const internal::Fragment* const>(reinterpret_cast<const char* const>(heap_instance) + offset);
}

inline auto GET_OFFSET(const internal::O1HeapInstance* heap_instance, const internal::Fragment* fragment)
Expand Down Expand Up @@ -244,7 +244,8 @@ struct O1HeapInstance final
REQUIRE(frag->header.used == used);
CAPTURE(frag->header.size);
REQUIRE((((size == 0U) || (frag->header.size == size))));
REQUIRE(((frag->header.next == NULLFRAGMENT) || (GET_FRAGMENT(this, frag->header.next)->header.prev == GET_OFFSET(this, frag))));
REQUIRE(((frag->header.next == NULLFRAGMENT) ||
(GET_FRAGMENT(this, frag->header.next)->header.prev == GET_OFFSET(this, frag))));
frag_ = frag->header.next;
frag = GET_FRAGMENT(this, frag_);
}
Expand Down

0 comments on commit 5ff5157

Please sign in to comment.