Skip to content

Commit

Permalink
fix: Fix corner cases
Browse files Browse the repository at this point in the history
  • Loading branch information
sp301415 committed Aug 25, 2024
1 parent 7937e9b commit c035678
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion math/poly/asm_convert.go
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ func floatModQInPlace(coeffs []float64, Q, QInv float64) {
for i := range coeffs {
coeffs[i] = coeffs[i] * QInv
coeffs[i] = coeffs[i] - math.Round(coeffs[i])
coeffs[i] = coeffs[i] * Q
coeffs[i] = math.Round(coeffs[i] * Q)
}
}

Expand Down

0 comments on commit c035678

Please sign in to comment.