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