Fix warning for gcc on windows

This commit is contained in:
Jeremy 2024-01-14 23:51:41 -06:00
parent 3d74da8df1
commit cfdd311e15
No known key found for this signature in database
GPG Key ID: BE03111EB7ED6E2E

View File

@ -21,7 +21,7 @@ namespace detail {
CPPTRACE_FORCE_NO_INLINE
std::vector<frame_ptr> capture_frames(std::size_t skip, std::size_t max_depth) {
std::vector<void*> addrs(skip + std::min(hard_max_frames, max_depth), nullptr);
int n_frames = CaptureStackBackTrace(
std::size_t n_frames = CaptureStackBackTrace(
static_cast<ULONG>(skip + 1),
static_cast<ULONG>(addrs.size()),
addrs.data(),