Closes #21311
The sign of the result `r` needs to be initialized before the correction
`r.addScalar(r.toConst(), -1)`, or the intended end result could be off
by 2 (depending on the original sign of `r`).
3543f28320Ian Johnson committed on 9/6/2024, 5:36:12 PM· committed by Andrew Kelleyparent3929cac