diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2017-12-07 04:12:42 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2017-12-07 04:12:42 +0000 |
commit | 79312049276b8a6cef46a82bbebf5233c2d9e950 (patch) | |
tree | 975b9713410e39f4d84b709fb13fada0fbe10f65 /parse.y | |
parent | 1a33ce3ee26ae2922f04c92a92e4591fa1486ddf (diff) | |
download | ruby-79312049276b8a6cef46a82bbebf5233c2d9e950.tar.gz |
parse.y: fix for old compilers
* parse.y (arg_value): initialization of aggregation type with
non-constant values is not allowed in C89.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@61068 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'parse.y')
-rw-r--r-- | parse.y | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -4998,7 +4998,9 @@ assoc : arg_value tASSOC arg_value | tSTRING_BEG string_contents tLABEL_END arg_value { /*%%%*/ - YYLTYPE location = {@1.first_loc, @3.last_loc}; + YYLTYPE location; + location.first_loc = @1.first_loc; + location.last_loc = @3.last_loc; $$ = list_append(new_list(dsym_node($2, &location), &location), $4, &@$); /*% $$ = dispatch2(assoc_new, dispatch1(dyna_symbol, $2), $4); |