mirror of
https://github.com/mruby/mruby
synced 2026-06-08 16:11:16 +00:00
Avoid pointer arithmetic in backtrace.c; #3816
This commit is contained in:
+1
-1
@@ -51,7 +51,7 @@ each_backtrace(mrb_state *mrb, ptrdiff_t ciidx, mrb_code *pc0, each_backtrace_fu
|
||||
pc = mrb->c->cibase[i].err;
|
||||
}
|
||||
else if (i+1 <= ciidx) {
|
||||
pc = mrb->c->cibase[i+1].pc - 1;
|
||||
pc = &mrb->c->cibase[i+1].pc[-1];
|
||||
}
|
||||
else {
|
||||
pc = pc0;
|
||||
|
||||
Reference in New Issue
Block a user