From b11bb29440626ec9f80f266aba478903915847ed Mon Sep 17 00:00:00 2001 From: Ricardo Antunes Date: Wed, 13 Sep 2023 13:54:48 +0100 Subject: [PATCH] test(core): cover missing Fields::Field getter --- core/tests/reflection/traits/fields.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/tests/reflection/traits/fields.cpp b/core/tests/reflection/traits/fields.cpp index 870c079c5e..cc7c371ffc 100644 --- a/core/tests/reflection/traits/fields.cpp +++ b/core/tests/reflection/traits/fields.cpp @@ -64,6 +64,6 @@ TEST_CASE("reflection::FieldsTrait") CHECK(fooField->pointerTo(&object) == &object.foo); CHECK(barField->name() == "bar"); CHECK(barField->type().is()); - CHECK(barField->pointerTo(&object) == &object.bar); + CHECK(barField->pointerTo(static_cast(&object)) == &object.bar); } }