summaryrefslogtreecommitdiff
path: root/io.c
diff options
context:
space:
mode:
authorkazu <kazu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2018-01-22 13:09:37 (GMT)
committerkazu <kazu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2018-01-22 13:09:37 (GMT)
commitb8cc476ce9a3e931fb474ee83e8ae147bcd9c86e (patch)
tree7e4873181f0b7e90bb83cdd79d0753f092b134eb /io.c
parent4f03a239dcd6704e4ae7a7029dc6b31d579e9f7c (diff)
use predefined IDs
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@62008 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'io.c')
-rw-r--r--io.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/io.c b/io.c
index fd4892f..501d14e 100644
--- a/io.c
+++ b/io.c
@@ -4742,7 +4742,7 @@ static VALUE
ignore_closed_stream(VALUE io, VALUE exc)
{
enum {mesg_len = sizeof(closed_stream)-1};
- VALUE mesg = rb_attr_get(exc, rb_intern("mesg"));
+ VALUE mesg = rb_attr_get(exc, idMesg);
if (!RB_TYPE_P(mesg, T_STRING) ||
RSTRING_LEN(mesg) != mesg_len ||
memcmp(RSTRING_PTR(mesg), closed_stream, mesg_len)) {