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

ruby-changes:71189

From: Nobuyoshi <ko1@a...>
Date: Wed, 16 Feb 2022 23:44:19 +0900 (JST)
Subject: [ruby-changes:71189] f9abb286fb (master): Parenthesize a macro expression

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

From f9abb286fb3ddff1caacea6c74d857803df18897 Mon Sep 17 00:00:00 2001
From: Nobuyoshi Nakada <nobu@r...>
Date: Wed, 16 Feb 2022 21:09:17 +0900
Subject: Parenthesize a macro expression

The modulo in `rb_yjit_code_page_alloc` seems interpreted wrongly.
---
 yjit_iface.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/yjit_iface.c b/yjit_iface.c
index bd0d25b7d7..b6090b1b80 100644
--- a/yjit_iface.c
+++ b/yjit_iface.c
@@ -37,7 +37,7 @@ extern st_table *rb_encoded_insn_data; https://github.com/ruby/ruby/blob/trunk/yjit_iface.c#L37
 struct rb_yjit_options rb_yjit_opts;
 
 // Size of code pages to allocate
-#define CODE_PAGE_SIZE 16 * 1024
+#define CODE_PAGE_SIZE (16 * 1024)
 
 // How many code pages to allocate at once
 #define PAGES_PER_ALLOC 512
-- 
cgit v1.2.1


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

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