Skip to content

Commit

Permalink
alluw way bigger enum values
Browse files Browse the repository at this point in the history
  • Loading branch information
Maiori44 committed May 7, 2024
1 parent b815fcc commit 31695b6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions core/src/parser.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1605,7 +1605,7 @@ impl<'a> ParserInfo<'a> {
self.current += 1;
self.assert(CURLY_BRACKET_OPEN, "{", Some("Missing enum block start"));
let mut enums = Expression::new();
let mut n = 0i16;
let mut n = 0i128;
loop {
if self.advance_if(CURLY_BRACKET_CLOSED) {
break;
Expand All @@ -1632,7 +1632,7 @@ impl<'a> ParserInfo<'a> {
Err(msg) => {
let t = self.look_back(0);
self.error(
"Enums values should be a non-float number ranging from -32768 to 32767.",
"Enums values should be numbers that can be represented in an signed 128 bit integer.",
t.line(),
t.column(),
t.range(),
Expand Down

0 comments on commit 31695b6

Please sign in to comment.