Skip to content

Commit 688386f

Browse files
jlatusekaustina-csa
authored andcommitted
Update callback (project-chip#34147)
1 parent 5865fe2 commit 688386f

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)