Skip to content

Commit

Permalink
Silence warnings caused by implicit type casting.
Browse files Browse the repository at this point in the history
  • Loading branch information
matz committed Apr 25, 2017
1 parent 92dcfba commit 3e07a2d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion mrbgems/mruby-string-ext/src/string.c
Expand Up @@ -367,7 +367,7 @@ mrb_str_succ_bang(mrb_state *mrb, mrb_value self)
unsigned char *p, *e, *b, *t;
const char *prepend;
struct RString *s = mrb_str_ptr(self);
size_t l;
mrb_int l;

if (RSTRING_LEN(self) == 0)
return self;
Expand Down
2 changes: 1 addition & 1 deletion src/array.c
Expand Up @@ -192,7 +192,7 @@ ary_expand_capa(mrb_state *mrb, struct RArray *a, size_t len)
if (capa > (size_t)a->aux.capa) {
mrb_value *expanded_ptr = (mrb_value *)mrb_realloc(mrb, a->ptr, sizeof(mrb_value)*capa);

a->aux.capa = capa;
a->aux.capa = (mrb_int)capa;
a->ptr = expanded_ptr;
}
}
Expand Down

0 comments on commit 3e07a2d

Please sign in to comment.