summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog8
-rw-r--r--proc.c1
2 files changed, 9 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index 334665ea29..b874e117ee 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,11 @@
+Sat May 25 18:46:23 2013 Yusuke Endoh <mame@tsg.ne.jp>
+
+ * 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 <mame@tsg.ne.jp>
* dir.c (bracket): fix copy-paste error. When the first and last
diff --git a/proc.c b/proc.c
index 32b7ef8c44..3731c69820 100644
--- a/proc.c
+++ b/proc.c
@@ -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;