1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

[bigdecimal] Use rb_undef_alloc_func to undefine allocate

This commit is contained in:
Kenta Murata 2020-12-19 02:29:18 +09:00
parent c2a5594e27
commit d5ab8e8562
No known key found for this signature in database
GPG key ID: CEFE8AFB6081B062

View file

@ -3367,7 +3367,7 @@ Init_bigdecimal(void)
rb_define_global_function("BigDecimal", f_BigDecimal, -1);
/* Class methods */
rb_undef_method(CLASS_OF(rb_cBigDecimal), "allocate");
rb_undef_alloc_func(rb_cBigDecimal);
rb_undef_method(CLASS_OF(rb_cBigDecimal), "new");
rb_define_singleton_method(rb_cBigDecimal, "interpret_loosely", BigDecimal_s_interpret_loosely, 1);
rb_define_singleton_method(rb_cBigDecimal, "mode", BigDecimal_mode, -1);