Skip to content

Commit

Permalink
Merge pull request aichaos#91 from Dinh-Hung-Tu/90
Browse files Browse the repository at this point in the history
aichaos#90 Fix proper use of bitwise operator
  • Loading branch information
kirsle authored May 4, 2017
2 parents 0a6a0b9 + 957ef6b commit 6b5ef3f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion rivescript/sorting.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ def __init__(self, pattern, index, weight, inherit = sys.maxsize):
self.option = self.alphabet.count('[') + self.alphabet.count('(') # Number of option 0 < 1

if self.star > 0:
if self.pound == 0 & self.under == 0 & self.option == 0: # Place single star last in the rank
if (self.pound == 0) & (self.under == 0) & (self.option == 0): # Place single star last in the rank
self.pound = sys.maxsize
self.under = sys.maxsize
self.option = sys.maxsize
Expand Down

0 comments on commit 6b5ef3f

Please sign in to comment.