ruby-changes:5048
From: ko1 <ko1@a...>
Date: Fri, 23 May 2008 02:31:33 +0900 (JST)
Subject: [ruby-changes:5048] Ruby:r16541 (trunk): * insns.def (opt_gt|ge|lt|le): use values directly to compare.
ko1 2008-05-23 02:31:15 +0900 (Fri, 23 May 2008) New Revision: 16541 Modified files: trunk/ChangeLog trunk/insns.def Log: * insns.def (opt_gt|ge|lt|le): use values directly to compare. http://svn.ruby-lang.org/cgi-bin/viewvc.cgi/trunk/ChangeLog?r1=16541&r2=16540&diff_format=u http://svn.ruby-lang.org/cgi-bin/viewvc.cgi/trunk/insns.def?r1=16541&r2=16540&diff_format=u Index: insns.def =================================================================== --- insns.def (revision 16540) +++ insns.def (revision 16541) @@ -1692,7 +1692,7 @@ { if (FIXNUM_2_P(recv, obj) && BASIC_OP_UNREDEFINED_P(BOP_LT)) { - long a = FIX2LONG(recv), b = FIX2LONG(obj); + SIGNED_VALUE a = recv, b = obj; if (a < b) { val = Qtrue; @@ -1721,7 +1721,7 @@ { if (FIXNUM_2_P(recv, obj) && BASIC_OP_UNREDEFINED_P(BOP_LE)) { - long a = FIX2LONG(recv), b = FIX2LONG(obj); + SIGNED_VALUE a = recv, b = obj; if (a <= b) { val = Qtrue; @@ -1751,7 +1751,7 @@ { if (FIXNUM_2_P(recv, obj) && BASIC_OP_UNREDEFINED_P(BOP_GT)) { - long a = FIX2LONG(recv), b = FIX2LONG(obj); + SIGNED_VALUE a = recv, b = obj; if (a > b) { val = Qtrue; @@ -1780,7 +1780,7 @@ { if (FIXNUM_2_P(recv, obj) && BASIC_OP_UNREDEFINED_P(BOP_GE)) { - long a = FIX2LONG(recv), b = FIX2LONG(obj); + SIGNED_VALUE a = recv, b = obj; if (a >= b) { val = Qtrue; Index: ChangeLog =================================================================== --- ChangeLog (revision 16540) +++ ChangeLog (revision 16541) @@ -1,3 +1,7 @@ +Fri May 23 02:29:14 2008 Koichi Sasada <ko1@a...> + + * insns.def (opt_gt|ge|lt|le): use values directly to compare. + Fri May 23 01:15:09 2008 Koichi Sasada <ko1@a...> * eval.c, eval_intern.h, include/ruby/intern.h, include/ruby/ruby.h, -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/