mirror of
https://github.com/apache/nuttx.git
synced 2026-08-15 01:13:29 +00:00
sim: Eliminate a warning
This commit is contained in:
parent
30834721df
commit
9f98dfecb7
1 changed files with 2 additions and 2 deletions
|
|
@ -102,7 +102,7 @@ int up_create_stack(FAR struct tcb_s *tcb, size_t stack_size, uint8_t ttype)
|
|||
|
||||
/* Move up to next even word boundary if necessary */
|
||||
|
||||
size_t adj_stack_size = (stack_size + 3) & ~3;
|
||||
size_t adj_stack_size = (stack_size + 3) & ~3;
|
||||
size_t adj_stack_words = adj_stack_size >> 2;
|
||||
|
||||
/* Allocate the memory for the stack */
|
||||
|
|
@ -115,7 +115,7 @@ int up_create_stack(FAR struct tcb_s *tcb, size_t stack_size, uint8_t ttype)
|
|||
{
|
||||
/* This is the address of the last word in the allocation */
|
||||
|
||||
size_t *adj_stack_ptr = &stack_alloc_ptr[adj_stack_words - 1];
|
||||
void *adj_stack_ptr = &stack_alloc_ptr[adj_stack_words - 1];
|
||||
|
||||
/* Save the values in the TCB */
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue