You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I was surprised by this. I'd though this had been solved by #1533. Unfortunately, not yet for multiplication and division. I noticed when one test in Sequel tests failed in the latest TruffleRuby 1.0.0 RC 13. Ironically, on the same issue reported in #1507 => BigDecimal('1.0') * Sequel[:a][:y]
As an example to reproduce the issue, I use @janko's original code in #1507
bigdecimal.rb:19:in `*': Truffle doesn't have a case for the org.truffleruby.stdlib.bigdecimal.BigDecimalNodesFactory$MultOpNodeFactory$MultOpNodeGen node with values of type BigDecimal(com.oracle.truffle.object.basic.DynamicObjectBasic) MyNumber(com.oracle.truffle.object.basic.DynamicObjectBasic) (TypeError)
from bigdecimal.rb:19:in `<main>'
bigdecimal.rb:19:in `/': Truffle doesn't have a case for the org.truffleruby.stdlib.bigdecimal.BigDecimalNodesFactory$DivOpNodeFactory$DivOpNodeGen node with values of type BigDecimal(com.oracle.truffle.object.basic.DynamicObjectBasic) MyNumber(com.oracle.truffle.object.basic.DynamicObjectBasic) (TypeError)
from bigdecimal.rb:19:in `<main>'
The text was updated successfully, but these errors were encountered:
Thanks for the report.
Sorry about that, we planned to fix other operations right after integrating #1533 (for which I didn't want to ask the author too much for a first contribution), but due to the OCA process which took much longer than expected and other more urgent tasks, this was forgotten.
I'll fix it.
I fixed this in 89e5a01, it will be in the next release.
I checked and the above example works identically on MRI and TruffleRuby now.
Thanks for the report!
I was surprised by this. I'd though this had been solved by #1533. Unfortunately, not yet for multiplication and division. I noticed when one test in Sequel tests failed in the latest TruffleRuby 1.0.0 RC 13. Ironically, on the same issue reported in #1507 =>
BigDecimal('1.0') * Sequel[:a][:y]
As an example to reproduce the issue, I use @janko's original code in #1507
Error:
The text was updated successfully, but these errors were encountered: