From 800e04b3b9409b7d785d7f08d7c99de66902a68f Mon Sep 17 00:00:00 2001 From: Gary Talent Date: Fri, 7 May 2021 07:01:04 -0500 Subject: [PATCH] [ox/std] Fix stacktrace shave --- deps/ox/src/ox/std/stacktrace.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/deps/ox/src/ox/std/stacktrace.cpp b/deps/ox/src/ox/std/stacktrace.cpp index 137fc03e..f1f9f9a2 100644 --- a/deps/ox/src/ox/std/stacktrace.cpp +++ b/deps/ox/src/ox/std/stacktrace.cpp @@ -57,7 +57,7 @@ void printStackTrace([[maybe_unused]]unsigned shave) noexcept { frames.resize(static_cast(backtrace(frames.data(), frames.size()))); if (frames.size() > shave) { const auto symbols = backtrace_symbols(frames.data() + shave, frames.size() - shave); - const auto symbolicatedStacktrace = symbolicate(bit_cast(frames.data()), frames.size() - shave, "\t"); + const auto symbolicatedStacktrace = symbolicate(bit_cast(frames.data() + shave), frames.size() - shave, "\t"); free(symbols); oxErrf("Stacktrace:\n{}", symbolicatedStacktrace); }