Commit 58ca4061 authored by KOBAYASHI Shuji's avatar KOBAYASHI Shuji

Remove unused variable in `each_backtrace()`

parent b8f00e43
......@@ -28,12 +28,12 @@ static const mrb_data_type bt_type = { "Backtrace", mrb_free };
static void
each_backtrace(mrb_state *mrb, ptrdiff_t ciidx, mrb_code *pc0, each_backtrace_func func, void *data)
{
ptrdiff_t i, j;
ptrdiff_t i;
if (ciidx >= mrb->c->ciend - mrb->c->cibase)
ciidx = 10; /* ciidx is broken... */
for (i=ciidx, j=0; i >= 0; i--,j++) {
for (i=ciidx; i >= 0; i--) {
struct backtrace_location loc;
mrb_callinfo *ci;
mrb_irep *irep;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment