From 07d449861363ac9a0226d5119350244ba198fb20 Mon Sep 17 00:00:00 2001 From: "Yukihiro \"Matz\" Matsumoto" Date: Thu, 28 Jan 2021 16:35:22 +0900 Subject: Silence VC warning. --- src/vm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/vm.c b/src/vm.c index 7a5365ebe..d099df528 100644 --- a/src/vm.c +++ b/src/vm.c @@ -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; -- cgit v1.2.3