mirror of
https://github.com/data61/MP-SPDZ.git
synced 2026-01-10 14:08:09 -05:00
Fix bug in fixed-point division with constant-round protocol.
This commit is contained in:
@@ -221,7 +221,7 @@ def PreOpN(op, items):
|
||||
return output
|
||||
|
||||
def PreOR(a=None, raw=False):
|
||||
if comparison.const_rounds:
|
||||
if comparison.const_rounds and a and isinstance(a[0], types._secret):
|
||||
return PreORC(a, raw=raw)
|
||||
else:
|
||||
return PreOpL(or_op, a)
|
||||
|
||||
Reference in New Issue
Block a user