diff --git a/arch/arm64/src/common/arm64_backtrace.c b/arch/arm64/src/common/arm64_backtrace.c index 60406f7f4d..b8b6875479 100644 --- a/arch/arm64/src/common/arm64_backtrace.c +++ b/arch/arm64/src/common/arm64_backtrace.c @@ -53,7 +53,7 @@ static int backtrace(uintptr_t *base, uintptr_t *limit, if (pc) { - if (*skip-- <= 0) + if ((*skip)-- <= 0) { buffer[i++] = pc; } @@ -66,7 +66,7 @@ static int backtrace(uintptr_t *base, uintptr_t *limit, break; } - if (*skip-- <= 0) + if ((*skip)-- <= 0) { buffer[i++] = (void *)*(fp + 1); }