From 4c9c51bba2907cbaa181d1c4b404d584dc4753c9 Mon Sep 17 00:00:00 2001 From: Phillip Stevens Date: Sat, 26 Sep 2020 00:24:23 +1000 Subject: [PATCH] missed one fix --- tasks.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tasks.c b/tasks.c index 4d2ddf1b1..130210421 100644 --- a/tasks.c +++ b/tasks.c @@ -229,7 +229,7 @@ * task should be used in place of the parameter. This macro simply checks to * see if the parameter is NULL and returns a pointer to the appropriate TCB. */ -#define prvGetTCBFromHandle( pxHandle ) ( ( ( pxHandle ) == NULL ) ? pxCurrentTCB : ( pxHandle ) ) +#define prvGetTCBFromHandle( pxHandle ) ( ( ( pxHandle ) == NULL ) ? pxCurrentTCB : ( TCB_t * ) ( pxHandle ) ) /* The item value of the event list item is normally used to hold the priority * of the task to which it belongs (coded to allow it to be held in reverse