Add Typecast pvPortMallocStack inside prvCreateTask when portSTACK_GROWTH is -1

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.

Seems reasonable. Would you be willing to raise a PR?

Thanks for your reply, I will be raising a PR by the weekend, if that’s okay.

1 Like

Sounds Great! Thank you!