Commit 4140f43f authored by 's avatar

Merged fix for bug 1545: off-by-one error in counter maintenance in the set()

method of GlobbingLexicon.
parent 163032c5
......@@ -156,9 +156,9 @@ class GlobbingLexicon(Lexicon):
set.insert(self.counter)
self._digrams = _digrams
counter = self.counter
self.counter = self.counter + 1
return self.counter
return counter
def get(self, pattern):
......
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