ClueLang / Clue

C/Rust like programming language that compiles into Lua code
https://crates.io/crates/clue
MIT License
340 stars 15 forks source link

Enumerators do not work with negative numbers #127

Closed defaultzone closed 1 year ago

defaultzone commented 1 year ago
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 commented 1 year ago

Interesting, I'll try to fix it now.

Maiori44 commented 1 year ago

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