diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2018-05-09 16:12:41 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2018-05-09 16:12:41 +0000 |
commit | c4a83d29248be65770ac9bfb83e51f6e97ab73e0 (patch) | |
tree | c716fffb3d831f0366ea471e785a02f34f868fd7 /iseq.h | |
parent | 3c4f49c814a2b5c6006f4e42ee5ed032e1454bc0 (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.h | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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 | \ |