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

Add wrapping arithmetics operators #6890

Merged
merged 1 commit into from Sep 29, 2018

Conversation

Projects
None yet
4 participants
@bcardiff
Member

bcardiff commented Sep 28, 2018

This PR adds the semantics to the &+ &- &* operators for integers operands.

After the next release it can be used in the std lib where wrapping semantics is explicitly needed.

Ref: #6223

@bcardiff bcardiff added this to the 0.27.0 milestone Sep 28, 2018

@RX14

RX14 approved these changes Sep 29, 2018

@ysbaddaden ysbaddaden merged commit 07f91d7 into crystal-lang:master Sep 29, 2018

4 checks passed

ci/circleci: test_darwin Your tests passed on CircleCI!
Details
ci/circleci: test_linux Your tests passed on CircleCI!
Details
ci/circleci: test_linux32 Your tests passed on CircleCI!
Details
continuous-integration/travis-ci/pr The Travis CI build passed
Details
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment