mirror of
https://github.com/ruby/ruby.git
synced 2025-09-15 08:33:58 +02:00
* ext/win32ole/win32ole.c(ole_search_handler_method, rescue_callback,
folerecord_inspect): use PRIsVALUE in rb_sprintf. * ext/win32ole/win32ole_param.c(foleparam_inspect): ditto. * ext/win32ole/win32ole_variable.c(folevariable_inspect): use PRIsVALUE in rb_sprintf, use rb_inspect. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47167 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
643551f0d3
commit
651b31e367
4 changed files with 19 additions and 9 deletions
|
@ -345,9 +345,9 @@ folevariable_varkind(VALUE self)
|
|||
static VALUE
|
||||
folevariable_inspect(VALUE self)
|
||||
{
|
||||
VALUE v = rb_funcall(folevariable_value(self), rb_intern("inspect"), 0);
|
||||
VALUE v = rb_inspect(folevariable_value(self));
|
||||
VALUE n = folevariable_name(self);
|
||||
VALUE detail = rb_sprintf("%s=%s", StringValueCStr(n), StringValueCStr(v));
|
||||
VALUE detail = rb_sprintf("%"PRIsVALUE"=%"PRIsVALUE, n, v);
|
||||
return make_inspect("WIN32OLE_VARIABLE", detail);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue