Skip to content

Commit 720596d

Browse files
committed
Merge branch 'unit_test_allback_fix' into bump_CI_images
2 parents a96dd06 + 6a225df commit 720596d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/lib/core/tests/TestCHIPCallback.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -201,7 +201,7 @@ TEST_F(TestCHIPCallback, NotifierTest)
201201
{
202202
int n = 1;
203203
Callback<Notifier::NotifyFn> cb(reinterpret_cast<Notifier::NotifyFn>(increment_by), &n);
204-
Callback<Notifier::NotifyFn> cancelcb(reinterpret_cast<Notifier::NotifyFn>(canceler), cb.Cancel());
204+
Callback<Notifier::NotifyFn> cancelcb([](void * call, int) { canceler(reinterpret_cast<Cancelable *>(call)); }, cb.Cancel());
205205

206206
// safe to call anytime
207207
cb.Cancel();

0 commit comments

Comments
 (0)