From a2ffcad81bfc823a65b9536b3d01e3292fa7f306 Mon Sep 17 00:00:00 2001 From: yugui Date: Sun, 25 Oct 2009 14:46:19 +0000 Subject: merges r24511 from trunk into ruby_1_9_1. -- * insns.def, vm.c, vm_insnhelper.c, vm_insnhelper.h: check definition of (classes)#=== for case/when optimization. Fix Bug #1376 [ruby-core:23190]. * string.c (Init_String), bignum.c (Init_Bignum), numeric.c (Init_Numeric): define String#===, Symbol#===, Bignum#===, Fixnum#===, Float#=== as same as (classes)#==. git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_9_1@25478 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- bignum.c | 1 + 1 file changed, 1 insertion(+) (limited to 'bignum.c') diff --git a/bignum.c b/bignum.c index 4642bb538..066457675 100644 --- a/bignum.c +++ b/bignum.c @@ -2709,6 +2709,7 @@ Init_Bignum(void) rb_define_method(rb_cBignum, "<=>", rb_big_cmp, 1); rb_define_method(rb_cBignum, "==", rb_big_eq, 1); + rb_define_method(rb_cBignum, "===", rb_big_eq, 1); rb_define_method(rb_cBignum, "eql?", rb_big_eql, 1); rb_define_method(rb_cBignum, "hash", rb_big_hash, 0); rb_define_method(rb_cBignum, "to_f", rb_big_to_f, 0); -- cgit