[前][次][番号順一覧][スレッド一覧]

ruby-changes:68610

From: Alan <ko1@a...>
Date: Thu, 21 Oct 2021 08:10:39 +0900 (JST)
Subject: [ruby-changes:68610] 2790428e55 (master): Zero sized array are not standard C

https://git.ruby-lang.org/ruby.git/commit/?id=2790428e55

From 2790428e55f4e6113dcd60c716d464d4c2193903 Mon Sep 17 00:00:00 2001
From: Alan Wu <XrXr@u...>
Date: Mon, 5 Oct 2020 12:46:14 -0400
Subject: Zero sized array are not standard C

---
 tool/ruby_vm/models/micro_jit.rb | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/tool/ruby_vm/models/micro_jit.rb b/tool/ruby_vm/models/micro_jit.rb
index eb20fe7335..b2ce26cb3a 100644
--- a/tool/ruby_vm/models/micro_jit.rb
+++ b/tool/ruby_vm/models/micro_jit.rb
@@ -179,7 +179,7 @@ module RubyVM::MicroJIT https://github.com/ruby/ruby/blob/trunk/tool/ruby_vm/models/micro_jit.rb#L179
       [true, comma_separated_hex_string(@pre_call_bytes), comma_separated_hex_string(@post_call_bytes)]
     rescue => e
       print_warning("scrape failed: #{e.message}")
-      [false, '', '']
+      [false, '0xcc', '0xcc']
     end
 
     def print_warning(text)
-- 
cgit v1.2.1


--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]