summaryrefslogtreecommitdiff
path: root/compile.c
diff options
context:
space:
mode:
authornaruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2012-11-29 11:09:34 +0000
committernaruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2012-11-29 11:09:34 +0000
commitbda0aca2afa263022876432c5a91259193192a25 (patch)
tree8973d62e7390b1e6374aea6808368e77e7377c2b /compile.c
parent399a32dfca7bbf2cb770cb7cd422b30ac220f01c (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.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/compile.c b/compile.c
index 3ad7192ca0..ebb58bba8d 100644
--- a/compile.c
+++ b/compile.c
@@ -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);