From 5ff5157c60e846220b23bef03ad740c91aa805b3 Mon Sep 17 00:00:00 2001 From: Mr-Wiseguy Date: Thu, 17 Oct 2024 00:37:41 -0400 Subject: [PATCH] More style and warning fixes --- tests/internal.hpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/tests/internal.hpp b/tests/internal.hpp index 790af2a..52d25ac 100644 --- a/tests/internal.hpp +++ b/tests/internal.hpp @@ -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(reinterpret_cast(heap_instance) + offset); + return reinterpret_cast(reinterpret_cast(heap_instance) + offset); } inline auto GET_OFFSET(const internal::O1HeapInstance* heap_instance, const internal::Fragment* fragment) @@ -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_); }