summaryrefslogtreecommitdiffhomepage
path: root/mrbgems/mruby-string-ext/src
diff options
context:
space:
mode:
authorYukihiro "Matz" Matsumoto <[email protected]>2017-04-25 21:00:16 +0900
committerYukihiro "Matz" Matsumoto <[email protected]>2017-04-25 21:00:16 +0900
commit3e07a2d77c5c2979e35e4f40475c6d6758669d04 (patch)
tree011be80a9249e69558d93a6de0e98c6dee9b3799 /mrbgems/mruby-string-ext/src
parent92dcfbaab38f3d848dcbd13c84be32d9f70f6e4a (diff)
downloadmruby-3e07a2d77c5c2979e35e4f40475c6d6758669d04.tar.gz
mruby-3e07a2d77c5c2979e35e4f40475c6d6758669d04.zip
Silence warnings caused by implicit type casting.
Diffstat (limited to 'mrbgems/mruby-string-ext/src')
-rw-r--r--mrbgems/mruby-string-ext/src/string.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/mrbgems/mruby-string-ext/src/string.c b/mrbgems/mruby-string-ext/src/string.c
index 402dbf987..4c22f40c7 100644
--- a/mrbgems/mruby-string-ext/src/string.c
+++ b/mrbgems/mruby-string-ext/src/string.c
@@ -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;