vm_method.c: quote method name

* vm_method.c (set_method_visibility): quote unprintable method name.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40922 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
nobu 2013-05-25 02:27:34 +00:00
Родитель 8a4fb4acba
Коммит 9abf09133d
2 изменённых файлов: 6 добавлений и 1 удалений

Просмотреть файл

@ -1,3 +1,7 @@
Sat May 25 11:27:32 2013 Nobuyoshi Nakada <nobu@ruby-lang.org>
* vm_method.c (set_method_visibility): quote unprintable method name.
Sat May 25 11:24:24 2013 Nobuyoshi Nakada <nobu@ruby-lang.org>
* eval.c (rb_frame_callee): returns the called name of the current

Просмотреть файл

@ -1274,7 +1274,8 @@ set_method_visibility(VALUE self, int argc, VALUE *argv, rb_method_flag_t ex)
secure_visibility(self);
if (argc == 0) {
rb_warning("%s with no argument is just ignored", rb_id2name(rb_frame_callee()));
rb_warning("%"PRIsVALUE" with no argument is just ignored",
QUOTE_ID(rb_frame_callee()));
}
for (i = 0; i < argc; i++) {