Skip to content

Commit 01eed9d

Browse files
matztsahara
authored andcommitted
change size_t to ptrdiff_t to silence signedness warnings; mruby#2732
Conflicts: src/vm.c
1 parent 0ae13d0 commit 01eed9d

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/vm.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -338,7 +338,7 @@ mrb_funcall_with_block(mrb_state *mrb, mrb_value self, mrb_sym mid, int argc, mr
338338

339339
if (!mrb->jmp) {
340340
jmp_buf c_jmp;
341-
size_t nth_ci = mrb->c->ci - mrb->c->cibase;
341+
ptrdiff_t nth_ci = mrb->c->ci - mrb->c->cibase;
342342

343343
if (setjmp(c_jmp) != 0) { /* error */
344344
while (nth_ci < (mrb->c->ci - mrb->c->cibase)) {

0 commit comments

Comments
 (0)