From cfdd311e156b5064e25fd938a61ccf779173f17a Mon Sep 17 00:00:00 2001 From: Jeremy <51220084+jeremy-rifkin@users.noreply.github.com> Date: Sun, 14 Jan 2024 23:51:41 -0600 Subject: [PATCH] Fix warning for gcc on windows --- src/unwind/unwind_with_winapi.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/unwind/unwind_with_winapi.cpp b/src/unwind/unwind_with_winapi.cpp index d10f6d9..a499357 100644 --- a/src/unwind/unwind_with_winapi.cpp +++ b/src/unwind/unwind_with_winapi.cpp @@ -21,7 +21,7 @@ namespace detail { CPPTRACE_FORCE_NO_INLINE std::vector capture_frames(std::size_t skip, std::size_t max_depth) { std::vector addrs(skip + std::min(hard_max_frames, max_depth), nullptr); - int n_frames = CaptureStackBackTrace( + std::size_t n_frames = CaptureStackBackTrace( static_cast(skip + 1), static_cast(addrs.size()), addrs.data(),