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

Account for one-based arrays in R when comparing for max capacity #646

Merged
merged 1 commit into from Jan 12, 2024

Conversation

eddelbuettel
Copy link
Member

This accounts for a minor off-by-one: when looking at array length in R, 128 is the critical value and not the reported 127. Usual old story of C/C++ being zero based whereas R is one-based. This updates yesterday's PR #645.

Copy link

This pull request has been linked to Shortcut Story #39116: Small adjustment to #39073.

@eddelbuettel
Copy link
Member Author

Thanks @johnkerl ! By the time I got around to the PR in SOMA I was aware so the '+1' is present there.

@eddelbuettel eddelbuettel merged commit e17563a into master Jan 12, 2024
8 checks passed
@eddelbuettel eddelbuettel deleted the de/sc-39116/minor_adjustment branch January 12, 2024 23:18
@eddelbuettel eddelbuettel mentioned this pull request Feb 14, 2024
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