From d0588e9822496a4b0bbd5717419491174e6e79bd Mon Sep 17 00:00:00 2001 From: knu Date: Tue, 31 Dec 2002 19:24:29 +0000 Subject: * node.h (struct RNode): Change argc from int to long. Otherwize NEW_CFUNC() sets argc to a wrong value on platforms where sizeof(int) != sizeof(long) and the byte order is big-endian. This fixes breakage on FreeBSD/sparc64. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3263 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- node.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'node.h') diff --git a/node.h b/node.h index 069045d593..74a462a98a 100644 --- a/node.h +++ b/node.h @@ -140,7 +140,7 @@ typedef struct RNode { union { struct RNode *node; ID id; - int argc; + long argc; VALUE value; } u2; union { -- cgit v1.2.3