mirror of
https://github.com/data61/MP-SPDZ.git
synced 2026-01-10 14:08:09 -05:00
Fix bug with recursive branching.
This commit is contained in:
@@ -6636,7 +6636,8 @@ class SubMultiArray(_vectorizable):
|
||||
if isinstance(index, int) and index < 0:
|
||||
index += self.sizes[0]
|
||||
key = program.curr_tape, tuple(
|
||||
(x, x.has_else) for x in program.curr_tape.if_states), str(index)
|
||||
(x, None if isinstance(x, bool) else x.has_else)
|
||||
for x in program.curr_tape.if_states), str(index)
|
||||
if key not in self.sub_cache:
|
||||
index = self.check(index, self.sizes[0], self.sizes)
|
||||
if len(self.sizes) == 2:
|
||||
|
||||
Reference in New Issue
Block a user