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

hdf5: fix []C.hid_t <-> []uint type prunning #49

Open
sbinet opened this issue Apr 18, 2019 · 0 comments
Open

hdf5: fix []C.hid_t <-> []uint type prunning #49

sbinet opened this issue Apr 18, 2019 · 0 comments

Comments

@sbinet
Copy link
Member

sbinet commented Apr 18, 2019

there are many places where we do:

func f(vs []uint) {
    cvs := (*C.hid_t)(unsafe.Pointer(&vs[0]))
    C.cfunc(C.int(len(vs)), cvs)
}

(or equivalent.)

either replace all these type prunning snippets or insert a func init() that checks this type prunning is actually working for the platform/OS/compiler setup at hand.

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

No branches or pull requests

1 participant