[ruby-cvs:72086] ko1:r64986 (trunk): revisit `RARRAY_PTR()`.

ko1 at ruby-lang.org ko1 at ruby-lang.org
Wed Oct 10 13:17:01 JST 2018


ko1	2018-10-10 13:17:01 +0900 (Wed, 10 Oct 2018)

  New Revision: 64986

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

  Log:
    revisit `RARRAY_PTR()`.
    
    * array.c (yield_indexed_values): use RARRAY_AREF/ASET instead of
      using RARRAY_PTR().
    
    * enum.c (nmin_filter): ditto.
    
    * proc.c (rb_sym_to_proc): ditto.
    
    * enum.c (rb_nmin_run): use RARRAY_PTR_USE() instead of RARRAY_PTR().
      It is safe because they don't make new referecen from an array.

  Modified files:
    trunk/array.c
    trunk/enum.c
    trunk/proc.c


More information about the ruby-cvs mailing list