diff --git a/src/core/thread/mle.cpp b/src/core/thread/mle.cpp index 3eaad5611..0129b59ab 100644 --- a/src/core/thread/mle.cpp +++ b/src/core/thread/mle.cpp @@ -1213,7 +1213,8 @@ exit: void Mle::HandleSendChildUpdateRequest(void *aContext) { - static_cast(aContext)->SendChildUpdateRequest(); + Mle *obj = reinterpret_cast(aContext); + obj->HandleSendChildUpdateRequest(); } void Mle::HandleSendChildUpdateRequest(void)