From bda0aca2afa263022876432c5a91259193192a25 Mon Sep 17 00:00:00 2001 From: naruse Date: Thu, 29 Nov 2012 11:09:34 +0000 Subject: 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 --- compile.c | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'compile.c') 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); -- cgit v1.2.3