diff options
| author | take_cheeze <[email protected]> | 2014-04-25 22:02:10 +0900 |
|---|---|---|
| committer | take_cheeze <[email protected]> | 2014-04-25 22:02:10 +0900 |
| commit | b5028421b9fc0df9c4706ee5e3095a9c00f8f383 (patch) | |
| tree | 628c9016ec18972b43e1abaa243528f2a02f7950 /mrbgems/mruby-string-ext/src | |
| parent | 49abcd4c0281d00030a540f7426de72882806dd4 (diff) | |
| download | mruby-b5028421b9fc0df9c4706ee5e3095a9c00f8f383.tar.gz mruby-b5028421b9fc0df9c4706ee5e3095a9c00f8f383.zip | |
Use mrb_int in mrbgem rest argument getting.
Diffstat (limited to 'mrbgems/mruby-string-ext/src')
| -rw-r--r-- | mrbgems/mruby-string-ext/src/string.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/mrbgems/mruby-string-ext/src/string.c b/mrbgems/mruby-string-ext/src/string.c index 3ec23c51f..2c0a406ad 100644 --- a/mrbgems/mruby-string-ext/src/string.c +++ b/mrbgems/mruby-string-ext/src/string.c @@ -113,7 +113,7 @@ static mrb_value mrb_str_start_with(mrb_state *mrb, mrb_value self) { mrb_value *argv, sub; - int argc, i; + mrb_int argc, i; mrb_get_args(mrb, "*", &argv, &argc); for (i = 0; i < argc; i++) { @@ -142,7 +142,7 @@ static mrb_value mrb_str_end_with(mrb_state *mrb, mrb_value self) { mrb_value *argv, sub; - int argc, i; + mrb_int argc, i; mrb_get_args(mrb, "*", &argv, &argc); for (i = 0; i < argc; i++) { |
