mirror of
https://github.com/ruby/ruby.git
synced 2025-08-15 13:39:04 +02:00
* variable.c: use uint32_t instead of long to avoid confusion about
the type of ivtbl->numiv. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@54700 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
70038431e7
commit
3738fe3333
7 changed files with 42 additions and 39 deletions
2
object.c
2
object.c
|
@ -268,7 +268,7 @@ rb_obj_copy_ivar(VALUE dest, VALUE obj)
|
|||
RBASIC(dest)->flags |= ROBJECT_EMBED;
|
||||
}
|
||||
else {
|
||||
long len = ROBJECT(obj)->as.heap.numiv;
|
||||
uint32_t len = ROBJECT(obj)->as.heap.numiv;
|
||||
VALUE *ptr = 0;
|
||||
if (len > 0) {
|
||||
ptr = ALLOC_N(VALUE, len);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue