From dda33ef6eadd1ca077c10fc03b76621dc7fc52d5 Mon Sep 17 00:00:00 2001 From: nobu Date: Mon, 24 Oct 2016 01:19:46 +0000 Subject: complex.c: undefine clamp * complex.c (Init_Complex): undefine Complex#clamp, which does not work like other Comparable methods, because Complex does not have <=> method. patched by Tim Peters in [ruby-core:77720]. [Bug #12866] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@56479 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- complex.c | 1 + 1 file changed, 1 insertion(+) (limited to 'complex.c') diff --git a/complex.c b/complex.c index 7a9c56d667..ad1ea8514e 100644 --- a/complex.c +++ b/complex.c @@ -2234,6 +2234,7 @@ Init_Complex(void) rb_undef_method(rb_cComplex, ">"); rb_undef_method(rb_cComplex, ">="); rb_undef_method(rb_cComplex, "between?"); + rb_undef_method(rb_cComplex, "clamp"); rb_undef_method(rb_cComplex, "div"); rb_undef_method(rb_cComplex, "divmod"); rb_undef_method(rb_cComplex, "floor"); -- cgit v1.2.3