From 9832ab36631b1f241eb646c936e801c0ff4d0cb9 Mon Sep 17 00:00:00 2001
From: ko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>
Date: Thu, 22 May 2008 17:31:15 +0000
Subject: * insns.def (opt_gt|ge|lt|le): use values directly to compare.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@16541 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
---
 insns.def | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

(limited to 'insns.def')

diff --git a/insns.def b/insns.def
index acd377ae4d..348f956ed6 100644
--- a/insns.def
+++ b/insns.def
@@ -1692,7 +1692,7 @@ opt_lt
 {
     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 @@ opt_le
 {
     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 @@ opt_gt
 {
     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 @@ opt_ge
 {
     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;
-- 
cgit v1.2.3

