diff options
| author | Yukihiro "Matz" Matsumoto <[email protected]> | 2021-07-26 10:49:12 +0900 |
|---|---|---|
| committer | Yukihiro "Matz" Matsumoto <[email protected]> | 2021-07-26 10:49:12 +0900 |
| commit | 966aa476d1c3ee03617d6acbce8ba1ebe327ddd4 (patch) | |
| tree | 377098b282214fa537ad16e45a2808ec1c1a9a69 /src/vm.c | |
| parent | 6175db2746b00ac6caa94734593f617fce02feb2 (diff) | |
| download | mruby-966aa476d1c3ee03617d6acbce8ba1ebe327ddd4.tar.gz mruby-966aa476d1c3ee03617d6acbce8ba1ebe327ddd4.zip | |
vm.c: fix integer type error in `mrb_protect_error`.
Diffstat (limited to 'src/vm.c')
| -rw-r--r-- | src/vm.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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; } |
