diff options
-rw-r--r-- | ChangeLog | 5 | ||||
-rw-r--r-- | parse.y | 2 |
2 files changed, 6 insertions, 1 deletions
@@ -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. @@ -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; |