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

WIP: Fix range of Fixnum. Closes #3636. #3640

Merged
merged 1 commit into from Jan 14, 2018
Merged

WIP: Fix range of Fixnum. Closes #3636. #3640

merged 1 commit into from Jan 14, 2018

Conversation

brixen
Copy link
Member

@brixen brixen commented Apr 24, 2016

No description provided.

#define FIXNUM_MIN_WIDTH (FIXNUM_MAX_WIDTH + 1)

#define FIXNUM_MAX (((native_int)1 << FIXNUM_MAX_WIDTH) - 1)
#define FIXNUM_MIN (-(FIXNUM_MAX) - 1)

Choose a reason for hiding this comment

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

define FIXNUM_MIN (-1 - FIXNUM_MAX)

#define FIXNUM_MIN_WIDTH (FIXNUM_MAX_WIDTH + 1)

#define FIXNUM_MAX (((native_int)1 << FIXNUM_MAX_WIDTH) - 1)
#define FIXNUM_MIN (-(FIXNUM_MAX) - 1)

Choose a reason for hiding this comment

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

define FIXNUM_MIN (-1 - FIXNUM_MAX)

@brixen brixen merged commit 76fe600 into master Jan 14, 2018
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

2 participants