diff --git a/core/msg.c b/core/msg.c index c22fd66188ba27dac35df13a00a685c1b5b64983..0fd4965e3ea7818a61b21d34fad02af653f23e85 100644 --- a/core/msg.c +++ b/core/msg.c @@ -133,7 +133,7 @@ int msg_send_to_self(msg_t *m) { unsigned int state = disableIRQ(); - int res = queue_msg(active_thread, m); + int res = queue_msg((tcb_t *) active_thread, m); restoreIRQ(state); return res;