You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
By misuse, I mean using the file generated for another architecture, esp. when size of GoInt differs.
Two possible solutions:
Add #ifndef __x86_64__ and #error to make sure it is only built with the correct platform. Or we can relax a bit and check for sizeof(GoInt) == sizeof(void *).
Define size of GoInt to be sizeof(void*). This is true for all supported platforms.
Opinions?
The text was updated successfully, but these errors were encountered:
By misuse, I mean using the file generated for another architecture, esp. when size of GoInt differs.
Two possible solutions:
#ifndef __x86_64__
and#error
to make sure it is only built with the correct platform. Or we can relax a bit and check forsizeof(GoInt) == sizeof(void *)
.sizeof(void*)
. This is true for all supported platforms.Opinions?
The text was updated successfully, but these errors were encountered: