diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2013-10-27 15:52:39 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2013-10-27 15:52:39 +0000 |
commit | ab453f901d1d01b7d96cf2259655f3c56252f6a1 (patch) | |
tree | f30c2d8e981150bbe62dbd8dcf23d47022f167d8 /struct.c | |
parent | d5dad14041a06dc3a2dc497c7812a4ac787aec5b (diff) |
struct.c: fix warning message
* struct.c (new_struct): fix warning message, class name and encoding.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43440 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'struct.c')
-rw-r--r-- | struct.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -188,7 +188,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); |