From 4db015e4b1e9f11a8916e47548e299fb21cf1149 Mon Sep 17 00:00:00 2001 From: Celestino Amoroso Date: Thu, 2 May 2024 10:58:05 +0200 Subject: [PATCH] func-math.go: Fixed mul() error: the previous version recursively called doAdd() instead of doMul() --- func-math.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/func-math.go b/func-math.go index 60976f8..08a869d 100644 --- a/func-math.go +++ b/func-math.go @@ -100,7 +100,7 @@ func doMul(ctx ExprContext, name string, it Iterator) (result any, err error) { for v, err = it.Next(); err == nil; v, err = it.Next() { if subIter, ok := v.(Iterator); ok { - if v, err = doAdd(ctx, name, subIter); err != nil { + if v, err = doMul(ctx, name, subIter); err != nil { break } if subIter.HasOperation(cleanName) {