ruby-changes:10292
From: yugui <ko1@a...>
Date: Wed, 28 Jan 2009 18:24:18 +0900 (JST)
Subject: [ruby-changes:10292] Ruby:r21836 (ruby_1_9_1): merges r21780 from trunk into ruby_1_9_1.
yugui 2009-01-28 18:23:30 +0900 (Wed, 28 Jan 2009) New Revision: 21836 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=21836 Log: merges r21780 from trunk into ruby_1_9_1. * array.c (rb_ary_aset): fixed arguments evaluation order. Modified files: branches/ruby_1_9_1/ChangeLog branches/ruby_1_9_1/array.c Index: ruby_1_9_1/array.c =================================================================== --- ruby_1_9_1/array.c (revision 21835) +++ ruby_1_9_1/array.c (revision 21836) @@ -1264,7 +1264,9 @@ long offset, beg, len; if (argc == 3) { - rb_ary_splice(ary, NUM2LONG(argv[0]), NUM2LONG(argv[1]), argv[2]); + beg = NUM2LONG(argv[0]); + len = NUM2LONG(argv[1]); + rb_ary_splice(ary, beg, len, argv[2]); return argv[2]; } if (argc != 2) { Index: ruby_1_9_1/ChangeLog =================================================================== --- ruby_1_9_1/ChangeLog (revision 21835) +++ ruby_1_9_1/ChangeLog (revision 21836) @@ -1,3 +1,7 @@ +Mon Jan 26 16:00:40 2009 Nobuyoshi Nakada <nobu@r...> + + * array.c (rb_ary_aset): fixed arguments evaluation order. + Sun Jan 25 12:02:56 2009 Nobuyoshi Nakada <nobu@r...> * win32/Makefile.sub (clean-ext): condition of EXTS was inverted. -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/