-
Notifications
You must be signed in to change notification settings - Fork 157
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
Sizeof int #683
Comments
This issue has repercussions in every part we use sizeof(int):
|
Yes, that's a good point. My first thought it to disallow |
My thought as well. |
kamphaus
pushed a commit
to kamphaus/c2go
that referenced
this issue
Apr 24, 2018
elliotchance
pushed a commit
that referenced
this issue
Apr 27, 2018
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
In c we have
sizeof(int) == 4
.However in Go the size of
int
is platform dependent, it could be either 4 or 8 bytes.cf. https://golang.org/ref/spec#Numeric_types
How should we handle this?
Should every
int
be translated asint32
to be platform independent?The text was updated successfully, but these errors were encountered: