LWIP: Corrected pointer type when allocating stack memory to a new thread

pull/948/head
GustavWi 2015-03-05 11:14:38 +01:00
parent 86c6d635d0
commit db5d9f7291
1 changed files with 0 additions and 4 deletions

View File

@ -427,11 +427,7 @@ sys_thread_t sys_thread_new(const char *pcName,
t->def.tpriority = (osPriority)priority;
t->def.stacksize = stacksize;
#ifndef __MBED_CMSIS_RTOS_CA9
#if defined (__ICCARM__)
t->def.stack_pointer = (uint32_t*)malloc(stacksize);
#else
t->def.stack_pointer = (unsigned char*)malloc(stacksize);
#endif
if (t->def.stack_pointer == NULL) {
error("Error allocating the stack memory");
}