1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

* 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
This commit is contained in:
knu 2002-12-31 19:24:29 +00:00
parent 5ec897d306
commit d0588e9822
2 changed files with 8 additions and 1 deletions

View file

@ -1,3 +1,10 @@
Wed Jan 1 04:16:18 2003 Akinori MUSHA <knu@iDaemons.org>
* 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.
Tue Dec 31 21:13:51 2002 WATANABE Hirofumi <eban@ruby-lang.org>
* Makefile.in, {win32,bcc32}/Makefile.sub: add new target:

2
node.h
View file

@ -140,7 +140,7 @@ typedef struct RNode {
union {
struct RNode *node;
ID id;
int argc;
long argc;
VALUE value;
} u2;
union {