diff --git a/CRT.c b/CRT.c index 5d617215b..a60857a17 100644 --- a/CRT.c +++ b/CRT.c @@ -1260,8 +1260,8 @@ static void print_backtrace(void) { #elif defined(HAVE_EXECINFO_H) void* backtraceArray[256]; - size_t size = backtrace(backtraceArray, ARRAYSIZE(backtraceArray)); - backtrace_symbols_fd(backtraceArray, size, STDERR_FILENO); + int nptrs = backtrace(backtraceArray, ARRAYSIZE(backtraceArray)); + backtrace_symbols_fd(backtraceArray, nptrs, STDERR_FILENO); #else #error No implementation for print_backtrace()! #endif