From 541abedba3a2d10a04c3cfd74b426b3ea88b8194 Mon Sep 17 00:00:00 2001 From: nobu Date: Sat, 13 Jul 2002 00:32:46 +0000 Subject: * parse.y (literal_concat_string): wrong optimization. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@2644 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- parse.y | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'parse.y') diff --git a/parse.y b/parse.y index ef5db61df..d0dac69d9 100644 --- a/parse.y +++ b/parse.y @@ -4367,8 +4367,7 @@ literal_concat_string(head, tail, str) head->nd_alen += 1; } if (!tail) tail = NEW_STR(str); - last1->nd_next = NEW_LIST(tail); - head->nd_alen += 1; + list_append(head, tail); return head; } } -- cgit