From c8360038237e9bbb333e041ca4530996cd9e596c Mon Sep 17 00:00:00 2001 From: Bert Melis Date: Fri, 1 Mar 2024 10:44:42 +0100 Subject: [PATCH] fix comp --- src/Fixed.h | 2 +- test/test_FixInt/test_FixInt.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Fixed.h b/src/Fixed.h index b62f9b0..03dce16 100644 --- a/src/Fixed.h +++ b/src/Fixed.h @@ -41,7 +41,7 @@ class Fixed { const std::lock_guard lockGuard(_mutex); if (_head) { void* retVal = _head; - _head = *_head; + _head = *reinterpret_cast(_head); return retVal; } return nullptr; diff --git a/test/test_FixInt/test_FixInt.cpp b/test/test_FixInt/test_FixInt.cpp index 4c2334a..3fcd415 100644 --- a/test/test_FixInt/test_FixInt.cpp +++ b/test/test_FixInt/test_FixInt.cpp @@ -54,6 +54,6 @@ void mallocFull() { int main() { UNITY_BEGIN(); RUN_TEST(emptyPool); - RUN_TEST(mallocFull) + RUN_TEST(mallocFull); return UNITY_END(); }