Skip to content

Commit

Permalink
* proc.c (rb_method_entry_min_max_arity): fix missing break in switch.
Browse files Browse the repository at this point in the history
  This was introduced in r38236, which is not intentional apparently.
  This has caused no actual harm because VM_METHOD_TYPE_OPTIMIZED is
  not used except for OPTIMIZED_METHOD_TYPE_SEND, but may do in
  future.  Coverity Scan found this inadequacy.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40926 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
  • Loading branch information
mame committed May 25, 2013
1 parent a0b3e03 commit 458b79e
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
8 changes: 8 additions & 0 deletions ChangeLog
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
Sat May 25 18:46:23 2013 Yusuke Endoh <[email protected]>

* proc.c (rb_method_entry_min_max_arity): fix missing break in switch.
This was introduced in r38236, which is not intentional apparently.
This has caused no actual harm because VM_METHOD_TYPE_OPTIMIZED is
not used except for OPTIMIZED_METHOD_TYPE_SEND, but may do in
future. Coverity Scan found this inadequacy.

Sat May 25 18:08:06 2013 Yusuke Endoh <[email protected]>

* dir.c (bracket): fix copy-paste error. When the first and last
Expand Down
1 change: 1 addition & 0 deletions proc.c
Original file line number Diff line number Diff line change
Expand Up @@ -1791,6 +1791,7 @@ rb_method_entry_min_max_arity(const rb_method_entry_t *me, int *max)
default:
break;
}
break;
}
case VM_METHOD_TYPE_REFINED:
*max = UNLIMITED_ARGUMENTS;
Expand Down

0 comments on commit 458b79e

Please sign in to comment.