summaryrefslogtreecommitdiff
path: root/src/ipc.c
diff options
context:
space:
mode:
authortangyuxin <[email protected]>2021-02-20 20:44:46 +0800
committertangyuxin <[email protected]>2021-02-20 20:44:46 +0800
commitbe864bcdd11e2b5e9708d95942193012cec21be9 (patch)
tree96767ba3f6573f0a08331eabe6bd3f5f54cb0cc4 /src/ipc.c
parent3b003937e8ac9237956615349f6a42e4d5237f03 (diff)
[ipc] fix IAR Compilation error
Diffstat (limited to 'src/ipc.c')
-rwxr-xr-xsrc/ipc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ipc.c b/src/ipc.c
index d037708979..37b05b9ae3 100755
--- a/src/ipc.c
+++ b/src/ipc.c
@@ -2203,7 +2203,7 @@ rt_err_t rt_mq_send_wait(rt_mq_t mq,
}
/* message queue is full */
- while ((msg = mq->msg_queue_free) == RT_NULL)
+ while ((msg = (struct rt_mq_message *)mq->msg_queue_free) == RT_NULL)
{
/* reset error number in thread */
thread->error = RT_EOK;