summaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/array.c2
-rw-r--r--src/codegen.c2
-rw-r--r--src/object.c2
-rw-r--r--src/state.c2
-rw-r--r--src/vm.c2
5 files changed, 5 insertions, 5 deletions
diff --git a/src/array.c b/src/array.c
index d4f5d1c5e..a358e1207 100644
--- a/src/array.c
+++ b/src/array.c
@@ -66,7 +66,7 @@ mrb_ary_new(mrb_state *mrb)
static inline void
array_copy(mrb_value *dst, const mrb_value *src, size_t size)
{
- int i;
+ size_t i;
for (i = 0; i < size; i++) {
dst[i] = src[i];
diff --git a/src/codegen.c b/src/codegen.c
index 5c3614814..35b22ddf4 100644
--- a/src/codegen.c
+++ b/src/codegen.c
@@ -2538,7 +2538,7 @@ codedump(mrb_state *mrb, int n)
void
codedump_all(mrb_state *mrb, int start)
{
- int i;
+ size_t i;
for (i=start; i<mrb->irep_len; i++) {
codedump(mrb, i);
diff --git a/src/object.c b/src/object.c
index 99034e3be..f8ebd44bc 100644
--- a/src/object.c
+++ b/src/object.c
@@ -395,7 +395,7 @@ mrb_check_type(mrb_state *mrb, mrb_value x, enum mrb_vtype t)
{
const struct types *type = builtin_types;
struct RString *s;
- int xt;
+ enum mrb_vtype xt;
xt = mrb_type(x);
if ((xt != t) || (xt == MRB_TT_DATA)) {
diff --git a/src/state.c b/src/state.c
index e30b0cea3..53773ac89 100644
--- a/src/state.c
+++ b/src/state.c
@@ -85,7 +85,7 @@ void mrb_free_heap(mrb_state *mrb);
void
mrb_close(mrb_state *mrb)
{
- int i;
+ size_t i;
mrb_final_core(mrb);
diff --git a/src/vm.c b/src/vm.c
index 696b566c8..ca31f6675 100644
--- a/src/vm.c
+++ b/src/vm.c
@@ -58,7 +58,7 @@ The value below allows about 60000 recursive calls in the simplest case. */
static inline void
stack_copy(mrb_value *dst, const mrb_value *src, size_t size)
{
- int i;
+ size_t i;
for (i = 0; i < size; i++) {
dst[i] = src[i];