[#60404] is RB_GC_GUARD needed in rb_io_syswrite? — Eric Wong <normalperson@...>
I haven't gotten it to crash as-is, but it seems like we need to
4 messages
2014/02/01
[#60682] volatile usages — Eric Wong <normalperson@...>
Hi all, I went ahead and removed some use of volatile which were once
5 messages
2014/02/13
[#60794] [RFC] rearrange+pack vtm and time_object structs — Eric Wong <normalperson@...>
Extracted from addendum on top of Feature #9362 (cache-aligned objects).
4 messages
2014/02/16
[#61139] [ruby-trunk - Feature #9577] [Open] [PATCH] benchmark/driver.rb: align columns in text output — normalperson@...
Issue #9577 has been reported by Eric Wong.
3 messages
2014/02/28
[ruby-core:60737] [ruby-trunk - Bug #9519] Wrong multiline calculation
From:
spam.special.for.me@...
Date:
2014-02-14 10:27:17 UTC
List:
ruby-core #60737
Issue #9519 has been updated by Victor Daev.
p(100 - (1 + 2 + 3 + 4))
# => 90
# ok
p(100 - (1 +
2 +
3 +
4))
# => 90
# ok
p(100 - (1
+ 2
+ 3
+ 4))
# => 96
# BUT it should be 90
----------------------------------------
Bug #9519: Wrong multiline calculation
https://bugs.ruby-lang.org/issues/9519#change-45158
* Author: Victor Daev
* Status: Open
* Priority: Normal
* Assignee:
* Category:
* Target version:
* ruby -v: ruby 2.1.0p0 (2013-12-25 revision 44422) [i686-linux], ruby 2.0.0p353 (2013-11-22 revision 43784) [i686-linux], ruby 1.9.3p484 (2013-11-22 revision 43786) [i686-linux]
* Backport: 1.9.3: UNKNOWN, 2.0.0: UNKNOWN, 2.1: UNKNOWN
----------------------------------------
I have some script with a trouble.
p(100 - (1 + 2 + 3 + 4))
# => 90
# ok
p(100 - (1 +
2 +
3 +
4))
# => 90
# ok
p(100 - (1
+ 2
+ 3
+ 4))
# => 96
# BUT it should be 90
If I run the script I will get
$ rvm use 1.9.3
Using /home/user/.rvm/gems/ruby-1.9.3-p484
$ ruby -v
ruby 1.9.3p484 (2013-11-22 revision 43786) [i686-linux]
$ ruby wrong_multiline_calculation.rb
90
90
96
$ rvm use 2.0.0
Using /home/user/.rvm/gems/ruby-2.0.0-p353
$ ruby -v
ruby 2.0.0p353 (2013-11-22 revision 43784) [i686-linux]
$ ruby wrong_multiline_calculation.rb
90
90
96
$ rvm use 2.1
Using /home/user/.rvm/gems/ruby-2.1.0
$ ruby -v
ruby 2.1.0p0 (2013-12-25 revision 44422) [i686-linux]
$ ruby wrong_multiline_calculation.rb
90
90
96
---Files--------------------------------
wrong_multiline_calculation.rb (138 Bytes)
--
http://bugs.ruby-lang.org/