From 0b0b62e9a413020fb8383559bdd051d30d128de9 Mon Sep 17 00:00:00 2001
From: matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>
Date: Fri, 13 Jul 2007 08:42:27 +0000
Subject: * insns.def (opt_succ): use cast to shut a warning up.

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

(limited to 'insns.def')

diff --git a/insns.def b/insns.def
index b22b76323a..066b0a4723 100644
--- a/insns.def
+++ b/insns.def
@@ -2304,7 +2304,7 @@ opt_succ
 	    const VALUE obj = INT2FIX(1);
 	    /* fixnum + INT2FIX(1) */
 	    val = (recv + (obj & (~1)));
-	    if ((~(recv ^ obj) & (recv ^ val)) & (LONG_MAX + 1)) {
+	    if ((~(recv ^ obj) & (recv ^ val)) & ((unsigned long)LONG_MAX + 1)) {
 		val = rb_big_plus(rb_int2big(FIX2LONG(recv)),
 				  rb_int2big(FIX2LONG(obj)));
 	    }
-- 
cgit v1.2.3

