ruby-changes:66467
From: Nobuyoshi <ko1@a...>
Date: Sun, 13 Jun 2021 15:13:26 +0900 (JST)
Subject: [ruby-changes:66467] 9ab6d39a66 (master): Added parentheses to silence sizeof-array-div warnings
https://git.ruby-lang.org/ruby.git/commit/?id=9ab6d39a66 From 9ab6d39a66f4df16d0a6940a966afc69ba6c14d3 Mon Sep 17 00:00:00 2001 From: Nobuyoshi Nakada <nobu@r...> Date: Sat, 12 Dec 2020 14:22:59 +0900 Subject: Added parentheses to silence sizeof-array-div warnings As well as 2366c681166a1dab95de6b9ca8ffcaae18aadd39. --- gc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gc.c b/gc.c index ec6946e..8ea6f72 100644 --- a/gc.c +++ b/gc.c @@ -6420,7 +6420,7 @@ mark_current_machine_context(rb_objspace_t *objspace, rb_execution_context_t *ec https://github.com/ruby/ruby/blob/trunk/gc.c#L6420 { union { rb_jmp_buf j; - VALUE v[sizeof(rb_jmp_buf) / sizeof(VALUE)]; + VALUE v[sizeof(rb_jmp_buf) / (sizeof(VALUE))]; } save_regs_gc_mark; VALUE *stack_start, *stack_end; -- cgit v1.1 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/