func-math.go: Fixed mul() error: the previous version recursively called doAdd() instead of doMul()

This commit is contained in:
Celestino Amoroso 2024-05-02 10:58:05 +02:00
parent 5809de419f
commit 4db015e4b1

View File

@ -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) {