提交 9d61fc32 编写于 作者: B bernard.xiong@gmail.com

fix compiling warning.

git-svn-id: https://rt-thread.googlecode.com/svn/trunk@1971 bbd45198-f89e-11dd-88c7-29a3b14d5316
上级 3fd6fd1f
......@@ -31,7 +31,10 @@ int pthread_setspecific(pthread_key_t key, const void *value)
RT_ASSERT(ptd != NULL);
/* check tls area */
if (ptd->tls == NULL) ptd->tls = rt_malloc(sizeof(void*) * PTHREAD_KEY_MAX);
if (ptd->tls == NULL)
{
ptd->tls = (void**)rt_malloc(sizeof(void*) * PTHREAD_KEY_MAX);
}
if ((key < PTHREAD_KEY_MAX) && _thread_keys[key].is_used)
{
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册