1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

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
This commit is contained in:
nobu 2014-10-05 15:31:38 +00:00
parent 9deb5262d8
commit e1b5111ff4

8
io.c
View file

@ -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");
}