summaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
authorYukihiro "Matz" Matsumoto <[email protected]>2021-07-26 10:49:12 +0900
committerYukihiro "Matz" Matsumoto <[email protected]>2021-07-26 10:49:12 +0900
commit966aa476d1c3ee03617d6acbce8ba1ebe327ddd4 (patch)
tree377098b282214fa537ad16e45a2808ec1c1a9a69 /src
parent6175db2746b00ac6caa94734593f617fce02feb2 (diff)
downloadmruby-966aa476d1c3ee03617d6acbce8ba1ebe327ddd4.tar.gz
mruby-966aa476d1c3ee03617d6acbce8ba1ebe327ddd4.zip
vm.c: fix integer type error in `mrb_protect_error`.
Diffstat (limited to 'src')
-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; }