Closed ericlagergren closed 7 years ago
The assignment to zm
is indeed ineffectual, as zm
is not thereafter used. The right hand side of an assignment happens before the assignment itself.
fair enough, I actually fixed this not too long after I created the issue. (z.unscaled
should be zm
.)
Line https://github.com/ericlagergren/decimal/blob/522450d1e655d86ef13b0bfad42d090a0240ce03/decimal.go#L430 is marked as an ineffectual assign.