summaryrefslogtreecommitdiffstats
path: root/node.h
diff options
context:
space:
mode:
authorknu <knu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2002-12-31 19:24:29 +0000
committerknu <knu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2002-12-31 19:24:29 +0000
commit0fc24d39b9f2609f6c5bb7b2c4e293c93090d471 (patch)
tree480cbfe5d97d9d1037e94ad4d08d11139ce9ec62 /node.h
parent1b2075b2f5e937f5fa88287d431159fd08ad9fce (diff)
downloadruby-0fc24d39b9f2609f6c5bb7b2c4e293c93090d471.tar.gz
ruby-0fc24d39b9f2609f6c5bb7b2c4e293c93090d471.tar.xz
ruby-0fc24d39b9f2609f6c5bb7b2c4e293c93090d471.zip
* 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: http://svn.ruby-lang.org/repos/ruby/trunk@3263 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'node.h')
-rw-r--r--node.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/node.h b/node.h
index 069045d59..74a462a98 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 {