diff options
author | S-H-GAMELINKS <[email protected]> | 2021-09-02 12:15:21 +0900 |
---|---|---|
committer | Nobuyoshi Nakada <[email protected]> | 2021-09-11 08:48:56 +0900 |
commit | 56065f0686e6798fff2ee7319f0f03026f427c13 (patch) | |
tree | 4142c73ad26bf2b25d268d7caeec1255fc438e3b /compile.c | |
parent | 9583d2057d1a4d907875ad447dfd64a541e63447 (diff) |
Using SYMBOL_P macro
Notes
Notes:
Merged: https://github.com/ruby/ruby/pull/4798
Diffstat (limited to 'compile.c')
-rw-r--r-- | compile.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -4103,7 +4103,7 @@ compile_keyword_arg(rb_iseq_t *iseq, LINK_ANCHOR *const ret, seen_nodes++; assert(nd_type(node) == NODE_LIST); - if (key_node && nd_type(key_node) == NODE_LIT && RB_TYPE_P(key_node->nd_lit, T_SYMBOL)) { + if (key_node && nd_type(key_node) == NODE_LIT && SYMBOL_P(key_node->nd_lit)) { /* can be keywords */ } else { @@ -12406,7 +12406,7 @@ ibf_dump_object_object(struct ibf_dump *dump, VALUE obj) current_offset = ibf_dump_pos(dump); if (SPECIAL_CONST_P(obj) && - ! (RB_TYPE_P(obj, T_SYMBOL) || + ! (SYMBOL_P(obj) || RB_TYPE_P(obj, T_FLOAT))) { obj_header.special_const = TRUE; obj_header.frozen = TRUE; |