diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2014-07-28 08:15:42 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2014-07-28 08:15:42 +0000 |
commit | 95d1b61a146f9e88564d3df7e648b78881741a61 (patch) | |
tree | 80a5e7736295617b89cdd4c1b16d631b00daa759 /signal.c | |
parent | e4c92f24fe23fbadc1a92f4e545b2a594ea56cba (diff) | |
download | ruby-95d1b61a146f9e88564d3df7e648b78881741a61.tar.gz |
symbols instead of IDs
* encoding.c (rb_enc_get_index): deal with symbols instead of IDs
to get rid of inadvertent pin-downs.
* enum.c (chunk_ii): ditto.
* enumerator.c (append_method): ditto.
* iseq.c (iseq_load): ditto.
* marshal.c (w_symbol, r_symlink, r_symreal, r_symbol): ditto.
* signal.c (trap_handler): ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@46988 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'signal.c')
-rw-r--r-- | signal.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -976,7 +976,7 @@ trap_handler(VALUE *cmd, int sig) else { command = rb_check_string_type(*cmd); if (NIL_P(command) && SYMBOL_P(*cmd)) { - command = rb_id2str(SYM2ID(*cmd)); + command = rb_sym2str(*cmd); if (!command) rb_raise(rb_eArgError, "bad handler"); } if (!NIL_P(command)) { |