summaryrefslogtreecommitdiff
path: root/ext/fiddle/pointer.c
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2014-01-13 00:57:36 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2014-01-13 00:57:36 +0000
commit7e9bd8f72c643b7b7ac3ca90293d96fe8a7e7a2d (patch)
tree053dc44f031cf115f0b4ccdbd62b7e227bd6c235 /ext/fiddle/pointer.c
parent56e96b9f73f75a46287358a8097a864b4ab35eb5 (diff)
ext: real class name
* ext/dl/cptr.c (rb_dlptr_inspect): use real class name, not singleton class. * ext/fiddle/pointer.c (rb_fiddle_ptr_inspect): ditto. * ext/strscan/strscan.c (strscan_inspect): ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@44578 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ext/fiddle/pointer.c')
-rw-r--r--ext/fiddle/pointer.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/fiddle/pointer.c b/ext/fiddle/pointer.c
index ca09c41..0129363 100644
--- a/ext/fiddle/pointer.c
+++ b/ext/fiddle/pointer.c
@@ -430,7 +430,7 @@ rb_fiddle_ptr_inspect(VALUE self)
TypedData_Get_Struct(self, struct ptr_data, &fiddle_ptr_data_type, data);
return rb_sprintf("#<%"PRIsVALUE":%p ptr=%p size=%ld free=%p>",
- CLASS_OF(self), data, data->ptr, data->size, data->free);
+ rb_obj_class(self), data, data->ptr, data->size, data->free);
}
/*