From d8d326c97a1119dac58063681e2d44c51fd65de1 Mon Sep 17 00:00:00 2001 From: nobu Date: Thu, 25 Dec 2014 01:09:17 +0000 Subject: 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 --- ext/io/console/console.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'ext/io') 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]; -- cgit v1.2.3