1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

Parenthesize the macro argument

This commit is contained in:
Nobuyoshi Nakada 2022-01-17 01:56:04 +09:00
parent 825e2ffb9f
commit ab11cafe0b
No known key found for this signature in database
GPG key ID: 7CD2805BFA3770C6

View file

@ -86,7 +86,7 @@ typedef struct rb_subclass_entry rb_subclass_entry_t;
typedef struct rb_classext_struct rb_classext_t;
#if USE_RVARGC
# define RCLASS_EXT(c) ((rb_classext_t *)((char *)c + sizeof(struct RClass)))
# define RCLASS_EXT(c) ((rb_classext_t *)((char *)(c) + sizeof(struct RClass)))
#else
# define RCLASS_EXT(c) (RCLASS(c)->ptr)
#endif