diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2014-12-25 01:09:17 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2014-12-25 01:09:17 +0000 |
commit | d8d326c97a1119dac58063681e2d44c51fd65de1 (patch) | |
tree | af2938495973f83e18f867d0f0684d626ca8cc72 /ext | |
parent | 86693b30c53ea750d0f1e1a7210476ec9c9f8374 (diff) | |
download | ruby-d8d326c97a1119dac58063681e2d44c51fd65de1.tar.gz |
console.c: get rid of NameError
* ext/io/console/console.c (console_dev): id_console is not a
constant name, use rb_const_remove() to get rid of NameError.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@48982 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ext')
-rw-r--r-- | ext/io/console/console.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/io/console/console.c b/ext/io/console/console.c index e4bea6eed0..0290a65a72 100644 --- a/ext/io/console/console.c +++ b/ext/io/console/console.c @@ -647,7 +647,7 @@ console_dev(VALUE klass) if ((fptr = RFILE(con)->fptr) && GetReadFD(fptr) != -1) return con; } - rb_mod_remove_const(klass, ID2SYM(id_console)); + rb_const_remove(klass, id_console); } { VALUE args[2]; |