diff options
author | ko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2015-06-11 06:54:49 +0000 |
---|---|---|
committer | ko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2015-06-11 06:54:49 +0000 |
commit | c002a3c4dd5c6755c2bdde780af44a61a53660c4 (patch) | |
tree | a77d07cacc63b48159bdb420ba3c896ab4dde84e /method.h | |
parent | 215999281fa297cd8dce649b2701e62430229b3d (diff) | |
download | ruby-c002a3c4dd5c6755c2bdde780af44a61a53660c4.tar.gz |
* 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.h | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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) |