summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPhil Howard <phil@gadgetoid.com>2021-02-23 22:56:44 +0000
committerDamien George <damien@micropython.org>2021-03-31 00:25:51 +1100
commitccc388f157eacfea6b5c44e1b6049a2bbeb44734 (patch)
treef634e3342309a68566fc0fbb12c5b489f78861ce
parent9fef1c0bde2f9642d383bd56aa112447384a84ba (diff)
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>
-rw-r--r--ports/rp2/mpthreadport.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/ports/rp2/mpthreadport.h b/ports/rp2/mpthreadport.h
index 4583f6f53..5eb0bff39 100644
--- a/ports/rp2/mpthreadport.h
+++ b/ports/rp2/mpthreadport.h
@@ -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) {