expr-lang / expr

Expression language and expression evaluation for Go
https://expr-lang.org
MIT License
5.85k stars 378 forks source link

Constant 1 overflows int64 when compiling expressions with int64 type parameters #661

Closed Unixeno closed 1 month ago

Unixeno commented 1 month ago

When compiling expressions that involve functions with int64 type parameters, I got an error with the message:

constant 1 overflows int64

This issue appears to have been introduced by this commit

antonmedv commented 1 month ago

Nice catch! Looks like I forgot to delete panic call ಠ_ಠ

antonmedv commented 1 month ago

I've adopted your test case in https://github.com/expr-lang/expr/pull/663