From 5f05c269e943b7c633f999b5f046122ba39559fa Mon Sep 17 00:00:00 2001
From: usa <usa@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>
Date: Tue, 5 Jun 2007 17:39:52 +0000
Subject: 	* insnhelper.h, insns.def (DEC_SP): shoudn't use unary minus
 operator 	  in pointer operation. some compilers (such as VC++8 x64)
 cannot deal 	  it with expected way.

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

(limited to 'insns.def')

diff --git a/insns.def b/insns.def
index dc8b47b149..57ef5b5ecd 100644
--- a/insns.def
+++ b/insns.def
@@ -1190,7 +1190,7 @@ send
 	    mn = rb_method_node(klass, id);
 
 	    num -= 1;
-	    INC_SP(-1);
+	    DEC_SP(1);
 	}
 
 	if (node->nd_cfnc == rb_f_funcall) {
@@ -1344,7 +1344,7 @@ invokeblock
 	    }
 	}
 
-	INC_SP(-argc);
+	DEC_SP(argc);
 	argc = th_yield_setup_args(th, iseq, argc, GET_SP(),
 				   block_proc_is_lambda(block->proc));
 	INC_SP(argc);
-- 
cgit v1.2.3

