aboutsummaryrefslogtreecommitdiffstats
path: root/struct.c
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2013-10-27 15:52:39 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2013-10-27 15:52:39 +0000
commitab453f901d1d01b7d96cf2259655f3c56252f6a1 (patch)
treef30c2d8e981150bbe62dbd8dcf23d47022f167d8 /struct.c
parentd5dad14041a06dc3a2dc497c7812a4ac787aec5b (diff)
downloadruby-ab453f901d1d01b7d96cf2259655f3c56252f6a1.tar.gz
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.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/struct.c b/struct.c
index 28d32c38a2..bae826bf80 100644
--- a/struct.c
+++ b/struct.c
@@ -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);