diff options
author | Nobuyoshi Nakada <[email protected]> | 2024-08-19 19:50:08 +0900 |
---|---|---|
committer | Nobuyoshi Nakada <[email protected]> | 2024-08-19 19:50:08 +0900 |
commit | cd0d4ec059b2998e4bf9cae35f4b1301c2bd6b53 (patch) | |
tree | 3e5238eea73b09d1cbe48fe0188f47ecde8ce37f /range.c | |
parent | 566f2eb501d94d4047a9aad4af0d74c6a96f34a9 (diff) |
Single letter ASCII operator is same as the corresponding ID
Diffstat (limited to 'range.c')
-rw-r--r-- | range.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -29,11 +29,12 @@ #include "internal/range.h" VALUE rb_cRange; -static ID id_beg, id_end, id_excl, id_plus; +static ID id_beg, id_end, id_excl; #define id_cmp idCmp #define id_succ idSucc #define id_min idMin #define id_max idMax +#define id_plus '+' static VALUE r_cover_p(VALUE, VALUE, VALUE, VALUE); @@ -2659,7 +2660,6 @@ Init_Range(void) id_beg = rb_intern_const("begin"); id_end = rb_intern_const("end"); id_excl = rb_intern_const("excl"); - id_plus = rb_intern_const("+"); rb_cRange = rb_struct_define_without_accessor( "Range", rb_cObject, range_alloc, |