Parenthize macro arguments

This commit is contained in:
Nobuyoshi Nakada 2022-04-13 18:36:56 +09:00
parent aaac279de0
commit df1594e4b5
No known key found for this signature in database
GPG Key ID: 7CD2805BFA3770C6
1 changed files with 2 additions and 2 deletions

4
gc.c
View File

@ -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)