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

os.v getexepath(): C.GetmoduleFileName compiles to incompatible type pointer *GetModuleF… #783

Closed
wants to merge 1 commit into from

Conversation

joe-conigliaro
Copy link
Member

…ileName. Casting to int fixes the problem. Investigate: Is it default behavior for v C calls to return pointers?

Fixes getexepath() on windows.
when compiled C.GetModuleFileName becomes a pointer, which is incompatible with tos().

…ileName. Casting to int fixes the problem. Investigate: Is it default behavior for v C calls to return pointers?
@joe-conigliaro
Copy link
Member Author

joe-conigliaro commented Jun 29, 2019

@medvednikov Why does C.GetModuleFileName become *GetModuleFileName?

@aguspiza
Copy link
Contributor

aguspiza commented Jun 29, 2019

This is duplicate of #776

@joe-conigliaro
Copy link
Member Author

@aguspiza my bad I didn't see the existing PR.

Closing in favour of existing PR: #776

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 this pull request may close these issues.

2 participants