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

objc: returning a struct only with floats from Send crashes on amd64 and doesn't work on arm64 #223

Closed
hajimehoshi opened this issue Apr 4, 2024 · 0 comments · Fixed by #221
Assignees
Milestone

Comments

@hajimehoshi
Copy link
Member

The fix is #221

@hajimehoshi hajimehoshi added this to the v0.7.1 milestone Apr 4, 2024
TotallyGamerJet added a commit that referenced this issue Apr 4, 2024
On amd64, there was a crash when calling objc.Send with a struct return type. This was due to calling the wrong objc message send function.

On arm64, if a struct return contained structs that only contained floats it would expect it to be in R8 instead of the expected float registers

Closes #223
hajimehoshi added a commit to hajimehoshi/ebiten that referenced this issue Apr 4, 2024
hajimehoshi pushed a commit that referenced this issue Apr 4, 2024
On amd64, there was a crash when calling objc.Send with a struct return type. This was due to calling the wrong objc message send function.

On arm64, if a struct return contained structs that only contained floats it would expect it to be in R8 instead of the expected float registers

Closes #223
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 a pull request may close this issue.

2 participants