Commit 86252058 authored by Nathan/Eilisha Shiraini's avatar Nathan/Eilisha Shiraini
Browse files

Corrected a mistake that makes module import crash

parent fbbf5990
......@@ -26,7 +26,7 @@ cdef class _GF(object):
self.__logtable[i] = 0
def __init__(self, wordsize, minlayers, maxlayers, polynomial):
if bool(minlayers < 0) or bool(maxlayers < 0) and minlayers != maxlayers:
if (bool(minlayers < 0) or bool(maxlayers < 0)) and minlayers != maxlayers:
raise ValueError("Cannot combine different special layer values: {} (min) and {} (max)".format(minlayers, maxlayers))
self.wordsize = wordsize
self.minlayers = minlayers
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment