diff options
| author | Yukihiro "Matz" Matsumoto <[email protected]> | 2021-01-28 16:35:22 +0900 |
|---|---|---|
| committer | Yukihiro "Matz" Matsumoto <[email protected]> | 2021-01-28 16:35:22 +0900 |
| commit | 07d449861363ac9a0226d5119350244ba198fb20 (patch) | |
| tree | 666a09b1ea5a2b375b52e0bc3fbe80ddb44d34db /src | |
| parent | d95ffb0362cb481afd6b323b5ec004ff0f0103f8 (diff) | |
| download | mruby-07d449861363ac9a0226d5119350244ba198fb20.tar.gz mruby-07d449861363ac9a0226d5119350244ba198fb20.zip | |
Silence VC warning.
Diffstat (limited to 'src')
| -rw-r--r-- | src/vm.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -792,7 +792,7 @@ catch_handler_find(mrb_state *mrb, mrb_callinfo *ci, const mrb_code *pc, uint32_ const struct mrb_irep_catch_handler *e; /* The comparison operators use `>` and `<=` because pc already points to the next instruction */ -#define catch_cover_p(pc, beg, end) ((pc) > (beg) && (pc) <= (end)) +#define catch_cover_p(pc, beg, end) ((pc) > (ptrdiff_t)(beg) && (pc) <= (ptrdiff_t)(end)) if (ci->proc == NULL || MRB_PROC_CFUNC_P(ci->proc)) return NULL; irep = ci->proc->body.irep; |
