diff options
Diffstat (limited to 'src/symbol.c')
| -rw-r--r-- | src/symbol.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/symbol.c b/src/symbol.c index b81296929..6b29ed350 100644 --- a/src/symbol.c +++ b/src/symbol.c @@ -236,7 +236,7 @@ is_special_global_name(const char* m) if (is_identchar(*m)) m += 1; break; default: - if (!ISDIGIT(*m)) return 0; + if (!ISDIGIT(*m)) return FALSE; do ++m; while (ISDIGIT(*m)); } return !*m; @@ -404,4 +404,5 @@ mrb_init_symbol(mrb_state *mrb) mrb_define_method(mrb, sym, "to_sym", sym_to_sym, ARGS_NONE()); /* 15.2.11.3.4 */ mrb_define_method(mrb, sym, "inspect", sym_inspect, ARGS_NONE()); /* 15.2.11.3.5(x) */ mrb_define_method(mrb, sym, "<=>", sym_cmp, ARGS_REQ(1)); + mrb->init_sym = mrb_intern(mrb, "initialize"); } |
