1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

* insns.def (expandarray): fix stack inc.

* bootstraptest/test_knownbug.rb, test_massign.rb: move a fixed test.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@15197 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
mame 2008-01-23 17:17:23 +00:00
parent ac7794478c
commit ea5aa33504
4 changed files with 13 additions and 9 deletions

View file

@ -1,3 +1,8 @@
Thu Jan 24 02:13:07 2008 Yusuke Endoh <mame@tsg.ne.jp>
* insns.def (expandarray): fix stack inc.
* bootstraptest/test_knownbug.rb, test_massign.rb: move a fixed test.
Thu Jan 24 01:00:34 2008 NARUSE, Yui <naruse@ruby-lang.org>
* encoding.{c, h} (rb_usascii_encoding): added.

View file

@ -17,14 +17,6 @@ assert_equal 'ok', %q{
end
}, '[ruby-core:14537]'
assert_equal 'ok', %q{
while true
*, z = 1
break
end
:ok
}, '[ruby-dev:32892]'
assert_equal 'ok', %q{
1.times do

View file

@ -174,3 +174,10 @@ assert_equal 'ok', %q{
:ok
}, '[ruby-dev:32581]'
assert_equal 'ok', %q{
while true
*, z = 1
break
end
:ok
}, '[ruby-dev:32892]'

View file

@ -450,7 +450,7 @@ DEFINE_INSN
expandarray
(rb_num_t num, rb_num_t flag)
(..., VALUE ary)
(...) // inc += flag == 0x02 ? num : ((num > 0) ? num - 1 + (flag ? 1 : 0) : num + 1 - (flag ? 1 : 0));
(...) // inc += num - 1 + (flag & 1 ? 1 : 0);
{
vm_expandarray(GET_CFP(), ary, num, flag);
}