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 *); 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)