mirror of
https://github.com/data61/MP-SPDZ.git
synced 2026-01-10 22:17:57 -05:00
Fix bug in conversion.
This commit is contained in:
@@ -350,7 +350,7 @@ void to_signed_bigint(bigint& ans, const T& x)
|
||||
{
|
||||
ans = x;
|
||||
// get sign and abs(x)
|
||||
if (ans > T::get_ZpD().pr_half)
|
||||
if (ans >= T::get_ZpD().pr_half)
|
||||
ans -= T::pr();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user