summaryrefslogtreecommitdiff
path: root/ext/bigdecimal
diff options
context:
space:
mode:
authorKenta Murata <mrkn@mrkn.jp>2020-12-19 02:29:18 +0900
committerKenta Murata <mrkn@mrkn.jp>2020-12-19 02:29:31 +0900
commitd5ab8e8562ec15979a32365fe4bf85be9e6334c0 (patch)
tree760c386e4a9b525bc8d0bba89435376e2d9803f8 /ext/bigdecimal
parentc2a5594e271170b57f92d7461466f3c0ab8da863 (diff)
[bigdecimal] Use rb_undef_alloc_func to undefine allocate
Diffstat (limited to 'ext/bigdecimal')
-rw-r--r--ext/bigdecimal/bigdecimal.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/bigdecimal/bigdecimal.c b/ext/bigdecimal/bigdecimal.c
index bc7fcc6..2b3c0bb 100644
--- a/ext/bigdecimal/bigdecimal.c
+++ b/ext/bigdecimal/bigdecimal.c
@@ -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);