diff options
| author | Carson McDonald <[email protected]> | 2013-06-08 10:38:09 -0400 |
|---|---|---|
| committer | Carson McDonald <[email protected]> | 2013-06-08 10:38:09 -0400 |
| commit | 5fbceaf4a1718f0a6c3f0d12912eebf068c2b303 (patch) | |
| tree | adec9a9ae473ba136968aa9a96c77e9c8ed12815 | |
| parent | e4c9af6e953d98bb6a52681b3fa861548e9e70a5 (diff) | |
| download | mruby-5fbceaf4a1718f0a6c3f0d12912eebf068c2b303.tar.gz mruby-5fbceaf4a1718f0a6c3f0d12912eebf068c2b303.zip | |
new is removed from Integer so doesn't need to be removed again in Fixnum
| -rw-r--r-- | src/numeric.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/src/numeric.c b/src/numeric.c index 6b118dfb4..6cd82d8b6 100644 --- a/src/numeric.c +++ b/src/numeric.c @@ -1374,7 +1374,6 @@ mrb_init_numeric(mrb_state *mrb) mrb_define_method(mrb, integer, "to_int", int_to_i, MRB_ARGS_NONE()); fixnum = mrb->fixnum_class = mrb_define_class(mrb, "Fixnum", integer); - mrb_undef_class_method(mrb, fixnum, "new"); mrb_define_method(mrb, fixnum, "+", fix_plus, MRB_ARGS_REQ(1)); /* 15.2.8.3.1 */ mrb_define_method(mrb, fixnum, "-", fix_minus, MRB_ARGS_REQ(1)); /* 15.2.8.3.2 */ mrb_define_method(mrb, fixnum, "-@", fix_uminus, MRB_ARGS_REQ(1)); /* 15.2.7.4.2 */ |
