mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
vm.c: fix compile issue on 32bit freebsd
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@44084 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
68e2146738
commit
599dbf65a5
2 changed files with 5 additions and 2 deletions
|
@ -252,10 +252,13 @@ struct rb_subclass_entry {
|
|||
|
||||
#if defined(HAVE_LONG_LONG)
|
||||
typedef unsigned LONG_LONG rb_serial_t;
|
||||
#define SERIALT2NUM ULL2NUM
|
||||
#elif defined(HAVE_UINT64_T)
|
||||
typedef uint64_t rb_serial_t;
|
||||
#define SERIALT2NUM SIZET2NUM
|
||||
#else
|
||||
typedef unsigned long rb_serial_t;
|
||||
#define SERIALT2NUM ULONG2NUM
|
||||
#endif
|
||||
|
||||
struct rb_classext_struct {
|
||||
|
|
4
vm.c
4
vm.c
|
@ -163,9 +163,9 @@ ruby_vm_stat(int argc, VALUE *argv, VALUE self)
|
|||
|
||||
#define SET(name, attr) \
|
||||
if (key == sym_##name) \
|
||||
return SIZET2NUM(attr); \
|
||||
return SERIALT2NUM(attr); \
|
||||
else if (hash != Qnil) \
|
||||
rb_hash_aset(hash, sym_##name, SIZET2NUM(attr));
|
||||
rb_hash_aset(hash, sym_##name, SERIALT2NUM(attr));
|
||||
|
||||
SET(method_serial, ruby_vm_method_serial);
|
||||
SET(constant_serial, ruby_vm_constant_serial);
|
||||
|
|
Loading…
Reference in a new issue