From eec7d1754bf1b8c938ad434f6ec49db994706201 Mon Sep 17 00:00:00 2001 From: Yuichi Nishiwaki Date: Sun, 26 Jul 2015 16:44:13 +0900 Subject: [PATCH] arena_idx is of size_t --- contrib/10.callcc/callcc.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/contrib/10.callcc/callcc.c b/contrib/10.callcc/callcc.c index 735cc2c5..047c9dfd 100644 --- a/contrib/10.callcc/callcc.c +++ b/contrib/10.callcc/callcc.c @@ -27,8 +27,7 @@ struct pic_fullcont { pic_value ptable; struct pic_object **arena; - size_t arena_size; - int arena_idx; + size_t arena_size, arena_idx; pic_value results; }; @@ -84,7 +83,7 @@ cont_mark(pic_state *pic, void *data, void (*mark)(pic_state *, pic_value)) } /* arena */ - for (i = 0; i < (size_t)cont->arena_idx; ++i) { + for (i = 0; i < cont->arena_idx; ++i) { mark(pic, pic_obj_value(cont->arena[i])); }