summaryrefslogtreecommitdiffhomepage
path: root/src/string.c
diff options
context:
space:
mode:
authorKOBAYASHI Shuji <[email protected]>2019-05-02 20:45:31 +0900
committerKOBAYASHI Shuji <[email protected]>2019-05-02 20:45:31 +0900
commit95a92d35c89ec9c39c97c5f948255389a129029e (patch)
treef25be68bfee4df65773b19a7a52000df0ba0ae31 /src/string.c
parenteeb78a7259de4bceb15f000a05ad9f9dccc8c619 (diff)
downloadmruby-95a92d35c89ec9c39c97c5f948255389a129029e.tar.gz
mruby-95a92d35c89ec9c39c97c5f948255389a129029e.zip
Unify overflow error class for conversion to integer to `RangeError`
Diffstat (limited to 'src/string.c')
-rw-r--r--src/string.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/string.c b/src/string.c
index 89ab59d4b..955ad57ce 100644
--- a/src/string.c
+++ b/src/string.c
@@ -2115,7 +2115,7 @@ mrb_str_len_to_inum(mrb_state *mrb, const char *str, mrb_int len, mrb_int base,
else
#endif
{
- mrb_raisef(mrb, E_ARGUMENT_ERROR, "string (%S) too big for integer",
+ mrb_raisef(mrb, E_RANGE_ERROR, "string (%S) too big for integer",
mrb_str_new(mrb, str, pend-str));
}
}