diff options
author | nagachika <nagachika@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2014-02-15 14:39:47 +0000 |
---|---|---|
committer | nagachika <nagachika@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2014-02-15 14:39:47 +0000 |
commit | 8e01dd6fc826128909e35f41d20a531d058a4e79 (patch) | |
tree | 60881148e22a240d7786be6c6cbc03dc3d297e55 /struct.c | |
parent | eee950f0f684a82adfe730ea86b48a79c4b8144b (diff) |
merge revision(s) r43440:
* struct.c (new_struct): fix warning message, class name and encoding.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_2_0_0@44972 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'struct.c')
-rw-r--r-- | struct.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -194,7 +194,7 @@ new_struct(VALUE name, VALUE super) } id = rb_to_id(name); if (rb_const_defined_at(super, id)) { - rb_warn("redefining constant Struct::%s", StringValuePtr(name)); + rb_warn("redefining constant %"PRIsVALUE"::%"PRIsVALUE, super, name); rb_mod_remove_const(super, ID2SYM(id)); } return rb_define_class_id_under(super, id, super); |