diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2012-12-12 07:07:25 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2012-12-12 07:07:25 +0000 |
commit | 3c4f8ce0921a5b64b77c5d6be69737f9dbf48d70 (patch) | |
tree | 5f0c95030bd7647d9aaeeec78b6c5294f075aebd /proc.c | |
parent | 9354b05e5cd4ee0fb0a6ed823145657eb4e68d55 (diff) | |
download | ruby-3c4f8ce0921a5b64b77c5d6be69737f9dbf48d70.tar.gz |
method.h: NOEX_SAFE_SHIFT_OFFSET
* method.h (rb_method_flag_t): name a magic number for NOEX_SAFE and
NOEX_WITH as NOEX_SAFE_SHIFT_OFFSET.
* method.h (rb_method_type_t, method_optimized_type): C89 forbids a
comma after the last element in enum.
* proc.c (rb_method_entry_arity), vm_eval.c (vm_call0_body),
vm_insnhelper.c (vm_call_method): add VM_METHOD_TYPE__MAX case.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38340 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'proc.c')
-rw-r--r-- | proc.c | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -1686,6 +1686,8 @@ rb_method_entry_arity(const rb_method_entry_t *me) } case VM_METHOD_TYPE_REFINED: return -1; + case VM_METHOD_TYPE__MAX: + break; } rb_bug("rb_method_entry_arity: invalid method entry type (%d)", def->type); |