mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
iseq.h: fix argument order
* iseq.h (ISEQ_ORIGINAL_ISEQ_ALLOC): the order of ruby_xmalloc2 arguments is `count` and `element size`. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@63380 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
3c4f49c814
commit
c4a83d2924
1 changed files with 1 additions and 1 deletions
2
iseq.h
2
iseq.h
|
@ -63,7 +63,7 @@ static inline VALUE *
|
|||
ISEQ_ORIGINAL_ISEQ_ALLOC(const rb_iseq_t *iseq, long size)
|
||||
{
|
||||
return iseq->body->variable.original_iseq =
|
||||
ruby_xmalloc2(sizeof(VALUE), size);
|
||||
ruby_xmalloc2(size, sizeof(VALUE));
|
||||
}
|
||||
|
||||
#define ISEQ_TRACE_EVENTS (RUBY_EVENT_LINE | \
|
||||
|
|
Loading…
Reference in a new issue