summaryrefslogtreecommitdiff
path: root/object.c
diff options
context:
space:
mode:
authorNobuyoshi Nakada <[email protected]>2024-09-07 16:06:14 +0900
committerNobuyoshi Nakada <[email protected]>2024-09-07 16:06:14 +0900
commitc1862cbb89a6bf42dcd07d92fe4f4bfeebca5775 (patch)
treecbd92ab606a9f36062b642018a7cba994c5c3374 /object.c
parentc1a510a8dffa1c8065e47697cd57edae67126712 (diff)
[Bug #20719] `Float` argument must be ASCII compatible
Notes
Notes: Merged: https://github.com/ruby/ruby/pull/11564
Diffstat (limited to 'object.c')
-rw-r--r--object.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/object.c b/object.c
index e2e68e07a4..bbc607ea98 100644
--- a/object.c
+++ b/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) {