diff --git a/dckks/transform.go b/dckks/transform.go index 35c874af..f0a018b0 100644 --- a/dckks/transform.go +++ b/dckks/transform.go @@ -397,10 +397,10 @@ func (mltp MaskedLinearTransformationProtocol) applyTransformAndScale(transform // .Int truncates (i.e. does not round to the nearest integer) // Thus we check if we are below, and if yes add 1, which acts as rounding to the nearest integer - if d == big.Below{ + if d == big.Below { inputScaleInt.Add(inputScaleInt, new(big.Int).SetInt64(1)) } - + // Scales the mask by the ratio between the two scales for i := range mask { mask[i].Mul(mask[i], mltp.defaultScale)