From 94a839c8de6a28d01dc328b131f7163a2cdefd2e Mon Sep 17 00:00:00 2001 From: Marcel Keller Date: Thu, 8 Aug 2024 11:30:16 +1000 Subject: [PATCH] Add missing brackets. --- Compiler/types.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Compiler/types.py b/Compiler/types.py index 9ca5f1a00..0104f7b0c 100644 --- a/Compiler/types.py +++ b/Compiler/types.py @@ -6419,7 +6419,7 @@ def sort(self, n_threads=None, batcher=False, n_bits=None): program.options.binary: library.loopy_odd_even_merge_sort(self, n_threads=n_threads) else: - if n_threads or 1 > 1: + if (n_threads or 1) > 1: raise CompilerError('multi-threaded sorting only implemented ' 'with Batcher\'s odd-even mergesort') from . import sorting