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 | 5421cea25246b62fd86700777aa21469629a98b0 (patch) | |
tree | a77d07cacc63b48159bdb420ba3c896ab4dde84e /method.h | |
parent | 038213351b757fb5a62bc9313b64fcb78ff2ce97 (diff) | |
download | ruby-5421cea25246b62fd86700777aa21469629a98b0.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) |