summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog4
-rw-r--r--parse.y2
2 files changed, 5 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index c1784574a5..224e37c8e2 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+Tue Feb 12 21:04:51 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * parse.y (exc_list): should use mrhs if non array.
+
Tue Feb 12 20:32:50 2008 Tadayoshi Funaba <tadf@dotrb.org>
* lib/rational.rb (floor, ceil, truncate, round): do not use
diff --git a/parse.y b/parse.y
index c0ff1fad24..3a769631d2 100644
--- a/parse.y
+++ b/parse.y
@@ -3549,7 +3549,7 @@ exc_list : arg_value
| mrhs
{
/*%%%*/
- $$ = splat_array($1);
+ if (!($$ = splat_array($1))) $$ = $1;
/*%
$$ = $1;
%*/