summaryrefslogtreecommitdiff
path: root/iseq.h
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2018-05-09 16:12:41 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2018-05-09 16:12:41 +0000
commitc4a83d29248be65770ac9bfb83e51f6e97ab73e0 (patch)
treec716fffb3d831f0366ea471e785a02f34f868fd7 /iseq.h
parent3c4f49c814a2b5c6006f4e42ee5ed032e1454bc0 (diff)
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
Diffstat (limited to 'iseq.h')
-rw-r--r--iseq.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/iseq.h b/iseq.h
index 6789635..38a7afa 100644
--- a/iseq.h
+++ b/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 | \