refactored data-types to reduce plugin sizes
This commit is contained in:
+2
-1
@@ -7,6 +7,7 @@ package expr
|
||||
import (
|
||||
"git.portale-stac.it/go-pkg/expr/kern"
|
||||
"git.portale-stac.it/go-pkg/expr/scan"
|
||||
"git.portale-stac.it/go-pkg/expr/types"
|
||||
)
|
||||
|
||||
//-------- Bitwise NOT term
|
||||
@@ -28,7 +29,7 @@ func evalBitwiseNot(ctx kern.ExprContext, opTerm *scan.Term) (v any, err error)
|
||||
return
|
||||
}
|
||||
|
||||
if kern.IsInteger(value) {
|
||||
if types.IsInteger(value) {
|
||||
i, _ := value.(int64)
|
||||
v = ^i
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user