diff options
| author | Bernard Xiong <[email protected]> | 2020-06-06 13:21:32 +0800 |
|---|---|---|
| committer | Bernard Xiong <[email protected]> | 2020-06-06 13:21:32 +0800 |
| commit | fe2e9e924e8c08865254f26dd1c763ced4784b1d (patch) | |
| tree | 265dd2fb7f7cb104b4828e1df7e34851f4725489 /components/libc/pthreads/pthread.c | |
| parent | a4f1905b6d7543a0c0cf81fc1d91cc46d52a5bd1 (diff) | |
[libc] fix 64bit issue for pthreads
Diffstat (limited to 'components/libc/pthreads/pthread.c')
| -rw-r--r--[-rwxr-xr-x] | components/libc/pthreads/pthread.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/components/libc/pthreads/pthread.c b/components/libc/pthreads/pthread.c index 5d3bc0796a..19a511b45b 100755..100644 --- a/components/libc/pthreads/pthread.c +++ b/components/libc/pthreads/pthread.c @@ -277,7 +277,7 @@ int pthread_create(pthread_t *pid, /* set pthread cleanup function and ptd data */ ptd->tid->cleanup = _pthread_cleanup; - ptd->tid->user_data = (rt_uint32_t)ptd; + ptd->tid->user_data = (rt_ubase_t)ptd; /* start thread */ if (rt_thread_startup(ptd->tid) == RT_EOK) |
