diff options
author | michal <michal@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2002-08-21 15:47:54 +0000 |
---|---|---|
committer | michal <michal@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2002-08-21 15:47:54 +0000 |
commit | ffc13a6525c7c72cbb858380e6870106bf5a7dfa (patch) | |
tree | 3b51176716a877c59eebbe6e82533d2cae3d7bc5 /struct.c | |
parent | 022d1f123c6149915970b4cac9664f66d8d5875c (diff) |
*.c: Int vs Long cleanup
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@2734 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'struct.c')
-rw-r--r-- | struct.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -166,7 +166,7 @@ make_struct(name, member, klass) } nstr = rb_define_class_under(klass, cname, klass); } - rb_iv_set(nstr, "__size__", INT2NUM(RARRAY(member)->len)); + rb_iv_set(nstr, "__size__", LONG2NUM(RARRAY(member)->len)); rb_iv_set(nstr, "__member__", member); rb_define_singleton_method(nstr, "allocate", struct_alloc, 0); @@ -576,7 +576,7 @@ static VALUE rb_struct_size(s) VALUE s; { - return INT2FIX(RSTRUCT(s)->len); + return LONG2FIX(RSTRUCT(s)->len); } void |