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

Use word instead of int. #2266

Merged
merged 2 commits into from May 1, 2024
Merged

Use word instead of int. #2266

merged 2 commits into from May 1, 2024

Conversation

erikcorry
Copy link
Member

Anything that relates to the size of an array, an offset to a pointer, or the size of memory should be a word, not an int. This avoids 64+32 add operations.

Anything extracted from a Smi should be word because int will silently overflow.

Many primitives changed from int (the smaller of int and Smi) to word (which actually means the argument must be Smi).

Anything that relates to the size of an array, an offset
to a pointer, or the size of memory should be a word, not
an int.  This avoids 64+32 add operations.

Anything extracted from a Smi should be word because int
will silently overflow.

Many primitives changed from int (the smaller of int and Smi)
to word (which actually means the argument must be Smi).
@erikcorry erikcorry requested a review from kasperl April 29, 2024 15:08
@cla-bot cla-bot bot added the cla-signed The contributors have signed the CLA label Apr 29, 2024
Copy link
Member

@kasperl kasperl left a comment

Choose a reason for hiding this comment

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

Looks good to me.

@erikcorry erikcorry merged commit b214778 into master May 1, 2024
25 checks passed
@erikcorry erikcorry deleted the less-int branch May 1, 2024 09:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cla-signed The contributors have signed the CLA
Development

Successfully merging this pull request may close these issues.

None yet

2 participants