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

feat(vm): Add conversions from integer types to SmallInteger #59

Merged
merged 2 commits into from
Nov 1, 2023

Conversation

andreubotella
Copy link
Collaborator

This patch also makes SmallInteger::from_i64_unchecked a private method, to prevent misuse.


This PR depends on #58 and should not land before it.

Copy link
Collaborator

@aapoalas aapoalas left a comment

Choose a reason for hiding this comment

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

Nice stuff, thanks a lot! <3

Just needs a rebase and I'll merge it.

@andreubotella
Copy link
Collaborator Author

Oh, I just realized I'd left some unsafe blocks from a previous version of this patch that made from_i64_unchecked unsafe and which I changed at the last minute.

This patch also makes `SmallInteger::from_i64_unchecked` a private
method, to prevent misuse.
@andreubotella andreubotella force-pushed the feat/small-integer-conversions branch from 20e38fc to 6ecae1b Compare October 31, 2023 21:26
@ghost
Copy link

ghost commented Oct 31, 2023

LGTM

Copy link
Collaborator

@aapoalas aapoalas left a comment

Choose a reason for hiding this comment

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

Thank you <3

@aapoalas aapoalas merged commit 92e4056 into main Nov 1, 2023
1 check passed
@aapoalas aapoalas deleted the feat/small-integer-conversions branch November 1, 2023 18:33
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.

2 participants