diff options
| author | Keita Obo <[email protected]> | 2014-03-21 21:41:04 +0900 |
|---|---|---|
| committer | Keita Obo <[email protected]> | 2014-03-21 21:41:04 +0900 |
| commit | 3faa76851d99f9547b7038da03317acf64e35d72 (patch) | |
| tree | 11db2c90240e5b87fe55c759d3746f9b1a8d59b1 /src/string.c | |
| parent | 07bd65ae65ba1092191f5a702ce3c15aaca2ab5f (diff) | |
| download | mruby-3faa76851d99f9547b7038da03317acf64e35d72.tar.gz mruby-3faa76851d99f9547b7038da03317acf64e35d72.zip | |
Prevent accepting String value for mrb_get_args("i")
Accepting String value for mrb_get_args("i")
causes unintentional expression.
* `"str" * "3"` => `"strstrstr"`
This change prevents String->Integer conversion for mrb_get_args("i")
and fixes above problem.
See also:
https://github.com/mruby/mruby/issues/1903
Diffstat (limited to 'src/string.c')
0 files changed, 0 insertions, 0 deletions
