mirror of
https://github.com/ruby/ruby.git
synced 2025-08-15 13:39:04 +02:00
[Bug #20719] Float
argument must be ASCII compatible
This commit is contained in:
parent
c1a510a8df
commit
c1862cbb89
Notes:
git
2024-09-07 08:29:29 +00:00
2 changed files with 7 additions and 0 deletions
1
object.c
1
object.c
|
@ -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) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue