diff options
author | Nobuyoshi Nakada <nobu@ruby-lang.org> | 2020-01-27 16:12:15 +0900 |
---|---|---|
committer | Nobuyoshi Nakada <nobu@ruby-lang.org> | 2020-01-27 16:12:15 +0900 |
commit | 1ddc719a562b1ee4c3ae6cf4d1f6c386e142b087 (patch) | |
tree | 557b2d25cf1a1787b155b25ebd6884ecaaa57ed4 /numeric.c | |
parent | af899503a646f20d63d4aa2f358894b98f85dab7 (diff) |
Check the encoding of `half:` option
Diffstat (limited to 'numeric.c')
-rw-r--r-- | numeric.c | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -233,6 +233,7 @@ rb_num_get_rounding_option(VALUE opts) str = rb_check_string_type(rounding); if (NIL_P(str)) goto invalid; } + rb_must_asciicompat(str); s = RSTRING_PTR(str); switch (RSTRING_LEN(str)) { case 2: |