summaryrefslogtreecommitdiff
path: root/method.h
diff options
context:
space:
mode:
authorko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2015-06-11 06:54:49 (GMT)
committerko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2015-06-11 06:54:49 (GMT)
commit5421cea25246b62fd86700777aa21469629a98b0 (patch)
treea77d07cacc63b48159bdb420ba3c896ab4dde84e /method.h
parent038213351b757fb5a62bc9313b64fcb78ff2ce97 (diff)
* method.h (METHOD_ENTRY_BASIC_SET): should clear last bit.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@50830 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'method.h')
-rw-r--r--method.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/method.h b/method.h
index db4ea93..141e648 100644
--- a/method.h
+++ b/method.h
@@ -67,7 +67,7 @@ static inline void
METHOD_ENTRY_BASIC_SET(rb_method_entry_t *me, int basic)
{
VM_ASSERT(basic <= 1);
- me->flags = me->flags | (basic << (IMEMO_FL_USHIFT+2));
+ me->flags = (me->flags & ~(IMEMO_FL_USER2 ) | (basic << (IMEMO_FL_USHIFT+2));
}
static inline void
METHOD_ENTRY_SAFE_SET(rb_method_entry_t *me, int safe)