summaryrefslogtreecommitdiffhomepage
path: root/src/vm.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/vm.c')
-rw-r--r--src/vm.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/vm.c b/src/vm.c
index d52d690f5..a584f6b13 100644
--- a/src/vm.c
+++ b/src/vm.c
@@ -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; }