summaryrefslogtreecommitdiff
path: root/rational.c
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2018-12-22 10:23:06 (GMT)
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2018-12-22 10:23:06 (GMT)
commit8ef2aae2d0350506fb1b12eb0afd56b5b1f51b89 (patch)
tree179a6c280d1b1ce254edb7c0ff2b88449350b437 /rational.c
parentdb68ccc20da6a3668dc514f128b3236e455822d0 (diff)
Use idException
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@66495 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'rational.c')
-rw-r--r--rational.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/rational.c b/rational.c
index 076d427..a6a9436 100644
--- a/rational.c
+++ b/rational.c
@@ -575,7 +575,7 @@ nurat_f_rational(int argc, VALUE *argv, VALUE klass)
static ID kwds[1];
VALUE exception;
if (!kwds[0]) {
- kwds[0] = rb_intern_const("exception");
+ kwds[0] = idException;
}
rb_get_kwargs(opts, kwds, 0, 1, &exception);
raise = (exception != Qfalse);