In line 1688 in tasks.c, no typecast is there:
pxStack = pvPortMallocStack( ( ( ( size_t ) uxStackDepth ) * sizeof( StackType_t ) ) );
in line 1675 in tasks.c, typecast is present:
pxNewTCB->pxStack = ( StackType_t * ) pvPortMallocStack( ( ( ( size_t ) uxStackDepth ) * sizeof( StackType_t ) ) );
Shouldn’t it be uniform both ways.