diff options
Diffstat (limited to 'common/math/math.go')
-rw-r--r-- | common/math/math.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/common/math/math.go b/common/math/math.go index cd06379aa..d4e2c1148 100644 --- a/common/math/math.go +++ b/common/math/math.go @@ -20,7 +20,7 @@ import ( // DoArithmetic performs arithmetic operations (+,-,*,/) using reflection to // determine the type of the two terms. -func DoArithmetic(a, b interface{}, op rune) (interface{}, error) { +func DoArithmetic(a, b any, op rune) (any, error) { av := reflect.ValueOf(a) bv := reflect.ValueOf(b) var ai, bi int64 |