arm/backtrace_sp: fix build warning

common/arm_backtrace_sp.c: In function 'up_backtrace':
common/arm_backtrace_sp.c:253:15: warning: assignment to 'long unsigned int' from 'uint8_t *' {aka 'unsigned char *'} makes integer from pointer without a cast [-Wint-conversion]
  253 |           top = g_intstacktop;
      |
This commit is contained in:
SPRESENSE 2022-11-01 14:46:42 +09:00 committed by Alin Jerpelea
parent fccda0c08b
commit 3379fc96fc

View File

@ -250,7 +250,7 @@ int up_backtrace(struct tcb_s *tcb,
# ifdef CONFIG_SMP # ifdef CONFIG_SMP
top = arm_intstack_top(); top = arm_intstack_top();
# else # else
top = g_intstacktop; top = (unsigned long)g_intstacktop;
# endif /* CONFIG_SMP */ # endif /* CONFIG_SMP */
#else #else
top = (unsigned long)rtcb->stack_base_ptr + top = (unsigned long)rtcb->stack_base_ptr +