func-math.go: Fixed mul() error: the previous version recursively called doAdd() instead of doMul()
This commit is contained in:
parent
5809de419f
commit
4db015e4b1
@ -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() {
|
for v, err = it.Next(); err == nil; v, err = it.Next() {
|
||||||
if subIter, ok := v.(Iterator); ok {
|
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
|
break
|
||||||
}
|
}
|
||||||
if subIter.HasOperation(cleanName) {
|
if subIter.HasOperation(cleanName) {
|
||||||
|
Loading…
Reference in New Issue
Block a user