summaryrefslogtreecommitdiff
path: root/ext/win32ole/win32ole_variable.c
diff options
context:
space:
mode:
authorsuke <suke@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2014-08-13 10:35:20 +0000
committersuke <suke@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2014-08-13 10:35:20 +0000
commit651b31e3677289df968eaec416494e5b9536b0e1 (patch)
tree19e158602da6ffccfcc909d87dc19e3d779b3fe2 /ext/win32ole/win32ole_variable.c
parent643551f0d3c2897bf15007c9476cab05bf431563 (diff)
* 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
Diffstat (limited to 'ext/win32ole/win32ole_variable.c')
-rw-r--r--ext/win32ole/win32ole_variable.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/ext/win32ole/win32ole_variable.c b/ext/win32ole/win32ole_variable.c
index 5a0fd5c..85f3341 100644
--- a/ext/win32ole/win32ole_variable.c
+++ b/ext/win32ole/win32ole_variable.c
@@ -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);
}