Fix bug in fixed-point division with constant-round protocol.

This commit is contained in:
Marcel Keller
2025-09-17 16:30:08 +08:00
parent 414075421b
commit d6049eef8f

View File

@@ -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)