summaryrefslogtreecommitdiff
path: root/proc.c
diff options
context:
space:
mode:
authorko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2015-12-09 00:38:32 (GMT)
committerko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2015-12-09 00:38:32 (GMT)
commit2f5b8f05299731e1187475ff4bd6b1618bac3a1a (patch)
tree5f22302de3f437b1ba7e2e1d387d9665efda08fd /proc.c
parent6a15a37f0b8f03c98f4b47ec777efa1ae75d7526 (diff)
* *.c (*_memsize): do not check ptr.
NULL checking is finished Before call of memsize functions. See r52979. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@52986 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'proc.c')
-rw-r--r--proc.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/proc.c b/proc.c
index c71e62e..f25fd77 100644
--- a/proc.c
+++ b/proc.c
@@ -269,7 +269,7 @@ binding_mark(void *ptr)
static size_t
binding_memsize(const void *ptr)
{
- return ptr ? sizeof(rb_binding_t) : 0;
+ return sizeof(rb_binding_t);
}
const rb_data_type_t ruby_binding_data_type = {
@@ -1203,7 +1203,7 @@ bm_free(void *ptr)
static size_t
bm_memsize(const void *ptr)
{
- return ptr ? sizeof(struct METHOD) : 0;
+ return sizeof(struct METHOD);
}
static const rb_data_type_t method_data_type = {