[Bug #20719] Float argument must be ASCII compatible

This commit is contained in:
Nobuyoshi Nakada 2024-09-07 16:06:14 +09:00
parent c1a510a8df
commit c1862cbb89
No known key found for this signature in database
GPG key ID: 3582D74E1FEE4465
Notes: git 2024-09-07 08:29:29 +00:00
2 changed files with 7 additions and 0 deletions

View file

@ -3530,6 +3530,7 @@ rb_str_to_dbl_raise(VALUE str, int badcheck, int raise, int *error)
VALUE v = 0;
StringValue(str);
rb_must_asciicompat(str);
s = RSTRING_PTR(str);
len = RSTRING_LEN(str);
if (s) {