Skip to content

Commit

Permalink
Parenthesize the macro argument
Browse files Browse the repository at this point in the history
  • Loading branch information
nobu committed Jan 16, 2022
1 parent 825e2ff commit ab11caf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/class.h
Expand Up @@ -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
Expand Down

0 comments on commit ab11caf

Please sign in to comment.