aboutsummaryrefslogtreecommitdiffstats
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
commit1691b5dea17bc67ff6d693e377a6a3c225041b03 (patch)
treec716fffb3d831f0366ea471e785a02f34f868fd7 /iseq.h
parentaf6a3f735f158e69565e306d83de0ec64cb2680c (diff)
downloadruby-1691b5dea17bc67ff6d693e377a6a3c225041b03.tar.gz
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 6789635de3..38a7afac34 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 | \