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

fix failing compile on android #1

Closed
wants to merge 1 commit into from

Conversation

deviaze
Copy link

@deviaze deviaze commented Dec 15, 2024

rs-luau was failing to compile due to weird platform specific behavior on android (rust bug?) that typed the return of luau_compile as *mut u8 instead of the *const i8 needed by the CompilerResult struct. Added an explicit as const* i8 conversion that seems to have fixed it.

@bjcscat
Copy link
Owner

bjcscat commented Dec 16, 2024

I chose to resolve this by setting the CompilerResult to use c_char.

@bjcscat bjcscat closed this Dec 16, 2024
@deviaze deviaze deleted the fix-android-int-ptrs branch December 16, 2024 01:43
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