diff options
author | Nobuyoshi Nakada <nobu@ruby-lang.org> | 2022-04-13 18:36:56 +0900 |
---|---|---|
committer | Nobuyoshi Nakada <nobu@ruby-lang.org> | 2022-04-13 22:55:20 +0900 |
commit | df1594e4b5100cef0ec0b5cf6a065f11634b26b2 (patch) | |
tree | 3ca8b75d71367126fb1d6ad2cc008517b3b73dd0 | |
parent | aaac279de09eb1fe48b32fd95e61453f0d602ac4 (diff) | |
download | ruby-df1594e4b5100cef0ec0b5cf6a065f11634b26b2.tar.gz |
Parenthize macro arguments
-rw-r--r-- | gc.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -1241,8 +1241,8 @@ static inline void gc_prof_set_malloc_info(rb_objspace_t *); 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) |