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

x/mobile/cmd/gobind: Go's int is always exported as int (32bit) in Objective-C #16182

Closed
hajimehoshi opened this issue Jun 25, 2016 · 2 comments

Comments

@hajimehoshi
Copy link
Member

Whether the architecture is 32bit or 64bit in Objective-C side, Go's int is exported as Objective-C's int, which is 32bit.

@hyangah
Copy link
Contributor

hyangah commented Jun 29, 2016

Any objection to change to long?
On the other hand, Go's int type is mapped to long for java (android), which causes a different issue #11421. Fortunately, for iOS, it seems 'long' matches Go's int type. Best practice is to avoid int type though.

@hyangah hyangah added this to the Unreleased milestone Jul 7, 2016
@gopherbot
Copy link

CL https://golang.org/cl/24792 mentions this issue.

@golang golang locked and limited conversation to collaborators Jul 7, 2017
imWildCat pushed a commit to imWildCat/go-mobile that referenced this issue Apr 10, 2021
imWildCat pushed a commit to imWildCat/go-mobile that referenced this issue Apr 11, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants