diff options
| author | Yukihiro "Matz" Matsumoto <[email protected]> | 2018-06-28 22:40:24 +0900 |
|---|---|---|
| committer | Yukihiro "Matz" Matsumoto <[email protected]> | 2018-06-28 22:40:24 +0900 |
| commit | adb1eae912659d680a9c5b7832e22cf73d36a69a (patch) | |
| tree | 1e9bcd388618fe4be6028b0bb45193d1f24254b4 /src | |
| parent | e60829405c9a4681d04d73ecda16aa53f0f21d4b (diff) | |
| download | mruby-adb1eae912659d680a9c5b7832e22cf73d36a69a.tar.gz mruby-adb1eae912659d680a9c5b7832e22cf73d36a69a.zip | |
Use `mrb_raise()` instead of `mrb_raisef()`; ref #4062
Diffstat (limited to 'src')
| -rw-r--r-- | src/string.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/string.c b/src/string.c index fd09e05dc..b7abfb762 100644 --- a/src/string.c +++ b/src/string.c @@ -709,7 +709,7 @@ mrb_str_resize(mrb_state *mrb, mrb_value str, mrb_int len) struct RString *s = mrb_str_ptr(str); if (len < 0) { - mrb_raisef(mrb, E_ARGUMENT_ERROR, "negative (or overflowed) string size"); + mrb_raise(mrb, E_ARGUMENT_ERROR, "negative (or overflowed) string size"); } mrb_str_modify(mrb, s); slen = RSTR_LEN(s); |
