[前][次][番号順一覧][スレッド一覧]

ruby-changes:51174

From: nobu <ko1@a...>
Date: Thu, 10 May 2018 01:12:49 +0900 (JST)
Subject: [ruby-changes:51174] nobu:r63380 (trunk): iseq.h: fix argument order

nobu	2018-05-10 01:12:41 +0900 (Thu, 10 May 2018)

  New Revision: 63380

  https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=63380

  Log:
    iseq.h: fix argument order
    
    * iseq.h (ISEQ_ORIGINAL_ISEQ_ALLOC): the order of ruby_xmalloc2
      arguments is `count` and `element size`.

  Modified files:
    trunk/iseq.h
Index: iseq.h
===================================================================
--- iseq.h	(revision 63379)
+++ iseq.h	(revision 63380)
@@ -63,7 +63,7 @@ static inline VALUE * https://github.com/ruby/ruby/blob/trunk/iseq.h#L63
 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  | \

--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]