ruby-changes:57658
From: Yusuke <ko1@a...>
Date: Sun, 8 Sep 2019 00:45:22 +0900 (JST)
Subject: [ruby-changes:57658] 7cba9a8406 (master): compile.c (compile_array): undef a temporal macro
https://git.ruby-lang.org/ruby.git/commit/?id=7cba9a8406 From 7cba9a84068e26d798bfe579607c27587302d67f Mon Sep 17 00:00:00 2001 From: Yusuke Endoh <mame@r...> Date: Sat, 7 Sep 2019 23:55:51 +0900 Subject: compile.c (compile_array): undef a temporal macro diff --git a/compile.c b/compile.c index 2ed6488..ba786bd 100644 --- a/compile.c +++ b/compile.c @@ -3998,7 +3998,6 @@ compile_array(rb_iseq_t *iseq, LINK_ANCHOR *const ret, const NODE *node, int pop https://github.com/ruby/ruby/blob/trunk/compile.c#L3998 if ((first_chunk && stack_len == 0 && !node_tmp) || count >= min_tmp_ary_len) { /* The literal contains only optimizable elements, or the subarray is long enough */ - VALUE ary = rb_ary_tmp_new(count); /* Create a hidden array */ @@ -4041,6 +4040,7 @@ compile_array(rb_iseq_t *iseq, LINK_ANCHOR *const ret, const NODE *node, int pop https://github.com/ruby/ruby/blob/trunk/compile.c#L4040 } FLUSH_CHUNK(newarray); +#undef FLUSH_CHUNK return 1; } -- cgit v0.10.2 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/