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

Enumerators do not work with negative numbers #127

Closed
defaultzone opened this issue Oct 1, 2023 · 2 comments
Closed

Enumerators do not work with negative numbers #127

defaultzone opened this issue Oct 1, 2023 · 2 comments
Assignees
Labels
bug Something isn't working

Comments

@defaultzone
Copy link

local enum {
    A = -1,
    B = 0,
    C = 1
}
$ clue test.clue
Error in test.clue:2:9!
Error: "Enums values should be a non-float number ranging from -32768 to 32767."
@Maiori44
Copy link
Member

Maiori44 commented Oct 1, 2023

Interesting, I'll try to fix it now.

@Maiori44 Maiori44 self-assigned this Oct 1, 2023
@Maiori44 Maiori44 added the bug Something isn't working label Oct 1, 2023
@Maiori44
Copy link
Member

Maiori44 commented Oct 1, 2023

Issue was fixed, I'll release a patch soon.

@Maiori44 Maiori44 closed this as completed Oct 1, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants