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

Fixing hardcoded 64-bit length for a slice in Kotlin #730

Merged

Conversation

emarteca
Copy link
Contributor

The Kotlin backend representation of a Slice is currently not compatible with 32-bit architectures. The Kotlin slice hardcodes the length as a 64-bit integer (a Long), but the corresponding native code expects the length to be a usize.

This PR adds a size_t representation for Kotlin, and uses it for the slice length.

@emarteca emarteca marked this pull request as ready for review November 13, 2024 23:59
@emarteca emarteca merged commit 4232380 into rust-diplomat:main Nov 14, 2024
20 checks passed
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