diff options
author | naruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2012-11-29 11:09:34 +0000 |
---|---|---|
committer | naruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2012-11-29 11:09:34 +0000 |
commit | bda0aca2afa263022876432c5a91259193192a25 (patch) | |
tree | 8973d62e7390b1e6374aea6808368e77e7377c2b /compile.c | |
parent | 399a32dfca7bbf2cb770cb7cd422b30ac220f01c (diff) |
Revert r37991 "compile.c: hash must be paired"
DO BUILD BEFORE COMMIT !
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37992 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'compile.c')
-rw-r--r-- | compile.c | 6 |
1 files changed, 1 insertions, 5 deletions
@@ -2379,15 +2379,11 @@ compile_array_(rb_iseq_t *iseq, LINK_ANCHOR *ret, NODE* node_root, rb_ary_push(ary, node->nd_head->nd_lit); node = node->nd_next; } - while (node && nd_type(node->nd_head) == NODE_LIT && - node->nd_next && nd_type(node->nd_next->nd_head) == NODE_LIT) { - rb_ary_push(ary, node->nd_head->nd_lit); - node = node->nd_next; + while (node && nd_type(node->nd_head) == NODE_LIT) { rb_ary_push(ary, node->nd_head->nd_lit); node = node->nd_next; len++; } - assert(RARRAY_LEN(ary) % 2 == 0); OBJ_FREEZE(ary); |