Commit 60788672 authored by Yukihiro "Matz" Matsumoto's avatar Yukihiro "Matz" Matsumoto

Merge pull request #786 from carsonmcdonald/unsignedfixes

Fixes a number of "comparison between signed and unsigned" warnings.
parents a43b53c1 8f83f667
......@@ -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];
......
......@@ -2537,7 +2537,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);
......
......@@ -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)) {
......
......@@ -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);
......
......@@ -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];
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment