diff options
Diffstat (limited to 'common_smp/src/tx_thread_create.c')
| -rw-r--r-- | common_smp/src/tx_thread_create.c | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/common_smp/src/tx_thread_create.c b/common_smp/src/tx_thread_create.c index 70557627..d53a1815 100644 --- a/common_smp/src/tx_thread_create.c +++ b/common_smp/src/tx_thread_create.c @@ -37,7 +37,7 @@ /* FUNCTION RELEASE */ /* */ /* _tx_thread_create PORTABLE SMP */ -/* 6.1.3 */ +/* 6.1.8 */ /* AUTHOR */ /* */ /* William E. Lamie, Microsoft Corporation */ @@ -80,9 +80,11 @@ /* */ /* DATE NAME DESCRIPTION */ /* */ -/* 09-30-2020 William E. Lamie Initial Version 6.1 */ -/* 12-31-2020 Andres Mlinar Modified comment(s), */ +/* 09-30-2020 William E. Lamie Initial Version 6.1 */ +/* 12-31-2020 Andres Mlinar Modified comment(s), */ /* resulting in version 6.1.3 */ +/* 08-02-2021 Scott Larson Removed unneeded cast, */ +/* resulting in version 6.1.8 */ /* */ /**************************************************************************/ UINT _tx_thread_create(TX_THREAD *thread_ptr, CHAR *name_ptr, @@ -120,7 +122,7 @@ ALIGN_TYPE updated_stack_start; /* Ensure the starting stack address is evenly aligned. */ new_stack_start = TX_POINTER_TO_ALIGN_TYPE_CONVERT(stack_start); - updated_stack_start = ((((ULONG) new_stack_start) + ((sizeof(ULONG)) - ((ULONG) 1)) ) & (~((sizeof(ULONG)) - ((ULONG) 1)))); + updated_stack_start = (((new_stack_start) + ((sizeof(ULONG)) - ((ULONG) 1)) ) & (~((sizeof(ULONG)) - ((ULONG) 1)))); /* Determine if the starting stack address is different. */ if (new_stack_start != updated_stack_start) |
