aboutsummaryrefslogtreecommitdiffstats
path: root/parse.y
diff options
context:
space:
mode:
Diffstat (limited to 'parse.y')
-rw-r--r--parse.y2
1 files changed, 1 insertions, 1 deletions
diff --git a/parse.y b/parse.y
index b3050d25cb..b6a3fc3388 100644
--- a/parse.y
+++ b/parse.y
@@ -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;