mirror of
https://github.com/data61/MP-SPDZ.git
synced 2026-01-10 14:08:09 -05:00
Fix bug with nested for_range_opt.
This commit is contained in:
@@ -1459,7 +1459,7 @@ def while_loop(loop_body, condition, arg=None, g=None):
|
||||
result = loop_body(arg)
|
||||
if isinstance(result, MemValue):
|
||||
result = result.read()
|
||||
arg.update(result)
|
||||
arg.link(type(arg)(result))
|
||||
return condition(result)
|
||||
if not isinstance(pre_condition, (bool,int)) or pre_condition:
|
||||
if_statement(pre_condition, lambda: do_while(loop_fn, g=g))
|
||||
|
||||
Reference in New Issue
Block a user