diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2018-03-07 11:49:24 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2018-03-07 11:49:24 +0000 |
commit | b479a2d43953ef8e1b498a3f1c0dac3e32269c69 (patch) | |
tree | 30e600871d284ac09d6813dd9f91ec3a8247dbdb /rational.c | |
parent | 6010d756c0df8c8f0fc24174bbb2960632068bd1 (diff) | |
download | ruby-b479a2d43953ef8e1b498a3f1c0dac3e32269c69.tar.gz |
complex.c, rational.c: no backref
Since r37702, parsing complex and rational do not use regexp.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@62687 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'rational.c')
-rw-r--r-- | rational.c | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/rational.c b/rational.c index a946739696..7b7bf396ac 100644 --- a/rational.c +++ b/rational.c @@ -2498,7 +2498,7 @@ rb_cstr_to_rat(const char *s, int strict) /* for complex's internal */ static VALUE nurat_s_convert(int argc, VALUE *argv, VALUE klass) { - VALUE a1, a2, backref; + VALUE a1, a2; rb_scan_args(argc, argv, "11", &a1, &a2); @@ -2515,9 +2515,6 @@ nurat_s_convert(int argc, VALUE *argv, VALUE klass) a2 = RCOMPLEX(a2)->real; } - backref = rb_backref_get(); - rb_match_busy(backref); - if (RB_FLOAT_TYPE_P(a1)) { a1 = float_to_r(a1); } @@ -2532,8 +2529,6 @@ nurat_s_convert(int argc, VALUE *argv, VALUE klass) a2 = string_to_r_strict(a2); } - rb_backref_set(backref); - if (RB_TYPE_P(a1, T_RATIONAL)) { if (argc == 1 || (k_exact_one_p(a2))) return a1; |