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

Fix support for short enums (cuchar, cschar workaround) in generated wrapper #53

Merged
merged 2 commits into from
Jan 20, 2023

Conversation

daniel-j
Copy link
Contributor

When short enums are used for the const (anonymous or duplicates), you got an error (because you can't assign an int to a char type).

This is a workaround, and nim is deprecating cuchar in favour of uint8, so maybe change uchars to uint8 instead of cuchar in the future. Not sure what the implications are.

Another thing that futhark should support are actual chars in enums, right now only numbers seem to be supported.

Since char is a character type and not an int type...
@PMunch PMunch merged commit ff64a92 into PMunch:master Jan 20, 2023
@daniel-j daniel-j deleted the feature-enum-const branch January 20, 2023 12:50
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