* parse.y (assoc_list): odd number check only for NODE_ARRAY.

[ruby-dev:31082]

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@12652 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
matz 2007-06-28 14:33:45 +00:00
parent dea470cca4
commit baaa30ec03
2 changed files with 6 additions and 1 deletions

View File

@ -1,3 +1,8 @@
Thu Jun 28 23:29:30 2007 Yukihiro Matsumoto <matz@ruby-lang.org>
* parse.y (assoc_list): odd number check only for NODE_ARRAY.
[ruby-dev:31082]
Thu Jun 28 22:24:33 2007 Koichi Sasada <ko1@atdot.net>
* win32/Makefile.sub: define FUNC_FASTCALL macro.

View File

@ -4328,7 +4328,7 @@ assoc_list : none
| args trailer
{
/*%%%*/
if ($1->nd_alen%2 != 0) {
if (nd_type($1) == NODE_ARRAY && $1->nd_alen%2 != 0) {
yyerror("odd number list for Hash");
}
$$ = $1;