From e1b5111ff4d45343588ff5c2d68448e4e03fef90 Mon Sep 17 00:00:00 2001 From: nobu Date: Sun, 5 Oct 2014 15:31:38 +0000 Subject: [PATCH] io.c: ID instead of Symbol * io.c (get_kwargs_exception): rb_get_kwargs() expects IDs, but not Symbols. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47804 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- io.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/io.c b/io.c index f4b41dd21a..6f04deb7b0 100644 --- a/io.c +++ b/io.c @@ -169,9 +169,9 @@ VALUE rb_default_rs; static VALUE argf; -static ID id_write, id_read, id_getc, id_flush, id_readpartial, id_set_encoding; +static ID id_write, id_read, id_getc, id_flush, id_readpartial, id_set_encoding, id_exception; static VALUE sym_mode, sym_perm, sym_extenc, sym_intenc, sym_encoding, sym_open_args; -static VALUE sym_textmode, sym_binmode, sym_autoclose, sym_exception; +static VALUE sym_textmode, sym_binmode, sym_autoclose; static VALUE sym_SET, sym_CUR, sym_END; #ifdef SEEK_DATA static VALUE sym_DATA; @@ -2633,7 +2633,7 @@ get_kwargs_exception(VALUE opts) VALUE except; if (!ids[0]) - ids[0] = sym_exception; + ids[0] = id_exception; rb_get_kwargs(opts, ids, 0, 1, &except); return except; @@ -12379,5 +12379,5 @@ Init_IO(void) #ifdef SEEK_HOLE sym_HOLE = ID2SYM(rb_intern("HOLE")); #endif - sym_exception = ID2SYM(rb_intern("exception")); + id_exception = rb_intern("exception"); }