Try to fix test and build workflows

This commit is contained in:
Jeremy 2023-09-22 12:17:07 -04:00
parent dd928b249b
commit f69448f781
No known key found for this signature in database
GPG Key ID: 3E11861CB34E158C
2 changed files with 2 additions and 2 deletions

View File

@ -14,7 +14,7 @@ namespace cpptrace {
namespace detail {
CPPTRACE_FORCE_NO_INLINE
std::vector<uintptr_t> capture_frames(size_t skip, size_t max_depth) {
skip += 2; // TODO: Not sure where the other 1 comes from
skip++;
std::vector<void*> addrs(std::min(hard_max_frames, skip + max_depth), nullptr);
const int n_frames = backtrace(addrs.data(), static_cast<int>(addrs.size())); // thread safe
std::vector<uintptr_t> frames(n_frames - skip, 0);

View File

@ -7,7 +7,7 @@
namespace cpptrace {
namespace detail {
std::vector<uintptr_t> capture_frames(size_t skip, size_t max_depth) {
std::vector<uintptr_t> capture_frames(size_t, size_t) {
return {};
}
}