Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Truffle] BigDecimal #3084

Merged
merged 20 commits into from
Jul 3, 2015
Merged

[Truffle] BigDecimal #3084

merged 20 commits into from
Jul 3, 2015

Conversation

pitr-ch
Copy link
Member

@pitr-ch pitr-ch commented Jun 26, 2015

No description provided.

@pitr-ch pitr-ch self-assigned this Jun 26, 2015
@pitr-ch pitr-ch added this to the truffle-dev milestone Jun 26, 2015
@pitr-ch pitr-ch changed the title BigDecimal [Truffle] BigDecimal Jun 26, 2015
'-'
when self == 0
''
end
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The indentation looks a bit strange to me.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do you mean case/when or aligned = ?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

the = is the clearest here.
Not sure for case/when but it might make sense to avoid anything that has visually so many levels of indentation (so when would have the same indent as the line before).

@pitr-ch pitr-ch force-pushed the bigdecimal branch 2 times, most recently from 658a425 to 07111e7 Compare June 30, 2015 17:59
"isSpecialRubyBigDecimal(b)" })
public Object divNormalSpecial(VirtualFrame frame, RubyBasicObject a, RubyBasicObject b, NotProvided precision) {
if (getBigDecimalType(b) == Type.NEGATIVE_ZERO) {
throw new RaiseException(getContext().getCoreLibrary().zeroDivisionError(this));
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You should transfer before you throw here.

@pitr-ch
Copy link
Member Author

pitr-ch commented Jul 1, 2015

Sorry about the missing transfers ( I've forgot again 😠 ). Added.

@pitr-ch
Copy link
Member Author

pitr-ch commented Jul 1, 2015

Please wait with merge, 1 or 2 commits and BigDecimal is done.

@pitr-ch
Copy link
Member Author

pitr-ch commented Jul 2, 2015

Ready for merge.

@eregon
Copy link
Member

eregon commented Jul 2, 2015

Looks good!

@pitr-ch pitr-ch merged commit eabb23a into jruby:master Jul 3, 2015
@pitr-ch pitr-ch deleted the bigdecimal branch July 21, 2016 09:17
@enebo enebo added this to the Non-Release milestone Dec 7, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants