backtrace.c (each_backtrace): make return type to size_t

This commit is contained in:
Yukihiro "Matz" Matsumoto
2024-02-07 17:34:33 +09:00
parent 0a11215452
commit 60919807e5
+2 -2
View File
@@ -19,10 +19,10 @@
typedef void (*each_backtrace_func)(mrb_state*, const struct mrb_backtrace_location*, void*);
static uint32_t
static size_t
each_backtrace(mrb_state *mrb, ptrdiff_t ciidx, each_backtrace_func func, void *data)
{
uint32_t n = 0;
size_t n = 0;
for (ptrdiff_t i=ciidx; i >= 0; i--) {
struct mrb_backtrace_location loc;