rp2/mpthreadport.h: Cast core_state to _mp_state_thread_t.

Required for user C++ code to build successfully against ports/rp2.

Signed-off-by: Phil Howard <phil@pimoroni.com>
This commit is contained in:
Phil Howard 2021-02-23 22:56:44 +00:00 committed by Damien George
parent 9fef1c0bde
commit ccc388f157
1 changed files with 1 additions and 1 deletions

View File

@ -41,7 +41,7 @@ static inline void mp_thread_set_state(struct _mp_state_thread_t *state) {
}
static inline struct _mp_state_thread_t *mp_thread_get_state(void) {
return core_state[get_core_num()];
return (struct _mp_state_thread_t *)core_state[get_core_num()];
}
static inline void mp_thread_mutex_init(mp_thread_mutex_t *m) {