ruby-changes:71716
From: Nobuyoshi <ko1@a...>
Date: Wed, 13 Apr 2022 22:55:50 +0900 (JST)
Subject: [ruby-changes:71716] df1594e4b5 (master): Parenthize macro arguments
https://git.ruby-lang.org/ruby.git/commit/?id=df1594e4b5 From df1594e4b5100cef0ec0b5cf6a065f11634b26b2 Mon Sep 17 00:00:00 2001 From: Nobuyoshi Nakada <nobu@r...> Date: Wed, 13 Apr 2022 18:36:56 +0900 Subject: Parenthize macro arguments --- gc.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gc.c b/gc.c index 83accd8714..78b3bee2d2 100644 --- a/gc.c +++ b/gc.c @@ -1241,8 +1241,8 @@ static inline void gc_prof_set_malloc_info(rb_objspace_t *); https://github.com/ruby/ruby/blob/trunk/gc.c#L1241 static inline void gc_prof_set_heap_info(rb_objspace_t *); #define TYPED_UPDATE_IF_MOVED(_objspace, _type, _thing) do { \ - if (gc_object_moved_p(_objspace, (VALUE)_thing)) { \ - *((_type *)(&_thing)) = (_type)RMOVED((_thing))->destination; \ + if (gc_object_moved_p((_objspace), (VALUE)(_thing))) { \ + *(_type *)&(_thing) = (_type)RMOVED(_thing)->destination; \ } \ } while (0) -- cgit v1.2.1 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/