Explorar o código

test: fix ub in the tests

Michele Caini %!s(int64=5) %!d(string=hai) anos
pai
achega
d07e0336a2
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      test/entt/signal/delegate.cpp

+ 1 - 1
test/entt/signal/delegate.cpp

@@ -62,7 +62,7 @@ TEST(Delegate, Functionalities) {
     mf_del.connect<&delegate_functor::operator()>(functor);
     lf_del.connect([](const void *ptr, int value) {
         return static_cast<const delegate_functor *>(ptr)->identity(value);
-    });
+    }, &functor);
 
     ASSERT_TRUE(ff_del);
     ASSERT_TRUE(mf_del);