summaryrefslogtreecommitdiff
path: root/yjit_iface.c
diff options
context:
space:
mode:
authorNobuyoshi Nakada <nobu@ruby-lang.org>2022-02-16 21:09:17 +0900
committerAlan Wu <XrXr@users.noreply.github.com>2022-02-16 09:43:54 -0500
commitf9abb286fb3ddff1caacea6c74d857803df18897 (patch)
treebdbc521d3d5993f69d03131cdd822ecae30b375f /yjit_iface.c
parent00c7a0d491504b0b2b1b8723d4b70e5c24ec649c (diff)
Parenthesize a macro expression
The modulo in `rb_yjit_code_page_alloc` seems interpreted wrongly.
Notes
Notes: Merged: https://github.com/ruby/ruby/pull/5560
Diffstat (limited to 'yjit_iface.c')
-rw-r--r--yjit_iface.c2
1 files changed, 1 insertions, 1 deletions
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;
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