diff --git a/arch/arm/src/common/arm_backtrace_fp.c b/arch/arm/src/common/arm_backtrace_fp.c index d1273882fd..1610334c72 100644 --- a/arch/arm/src/common/arm_backtrace_fp.c +++ b/arch/arm/src/common/arm_backtrace_fp.c @@ -55,7 +55,7 @@ static int backtrace(uintptr_t *base, uintptr_t *limit, if (pc) { i++; - if (*skip-- <= 0) + if ((*skip)-- <= 0) { *buffer++ = pc; } @@ -68,7 +68,7 @@ static int backtrace(uintptr_t *base, uintptr_t *limit, break; } - if (*skip-- <= 0) + if ((*skip)-- <= 0) { *buffer++ = (void *)*fp; }