summaryrefslogtreecommitdiff
path: root/struct.c
diff options
context:
space:
mode:
authornagachika <nagachika@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2014-02-15 14:39:47 +0000
committernagachika <nagachika@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2014-02-15 14:39:47 +0000
commit8e01dd6fc826128909e35f41d20a531d058a4e79 (patch)
tree60881148e22a240d7786be6c6cbc03dc3d297e55 /struct.c
parenteee950f0f684a82adfe730ea86b48a79c4b8144b (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.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/struct.c b/struct.c
index 7091322d05..9f2155aeee 100644
--- a/struct.c
+++ b/struct.c
@@ -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);