diff --git a/Compiler/types.py b/Compiler/types.py index c884618a..f92ec4d3 100644 --- a/Compiler/types.py +++ b/Compiler/types.py @@ -3190,7 +3190,10 @@ class sint(_secret, _int): def concat(cls, parts): parts = list(parts) res = cls(size=sum(len(part) for part in parts)) - args = sum(([len(part), part] for part in parts), []) + args = [] + for part in parts: + args.append(len(part)) + args.append(part) concats(res, *args) return res