vm.c: fix integer type error in mrb_protect_error.

This commit is contained in:
Yukihiro "Matz" Matsumoto
2021-07-26 10:49:12 +09:00
parent 6175db2746
commit 966aa476d1
+1 -1
View File
@@ -312,7 +312,7 @@ mrb_protect_error(mrb_state *mrb, mrb_protect_error_func *body, void *userdata,
mrb_value result = mrb_nil_value();
int ai = mrb_gc_arena_save(mrb);
const struct mrb_context *c = mrb->c;
int ci_index = c->ci - c->cibase;
ptrdiff_t ci_index = c->ci - c->cibase;
if (error) { *error = FALSE; }