Skip to content

Commit

Permalink
Fix in _idify()
Browse files Browse the repository at this point in the history
This function used plain division '/' in an algorithm where floor
division '//' should be used instead.
  • Loading branch information
ZelenyMartin committed Oct 30, 2019
1 parent 6c4803f commit 3a603b9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion source/base.py
Expand Up @@ -116,7 +116,7 @@ def _idify(id):
result = []
while id > 0:
remainder = id % config._MAX_ID
id = id / config._MAX_ID
id = id // config._MAX_ID
result.append(int(remainder))
result.reverse()
return result
Expand Down

0 comments on commit 3a603b9

Please sign in to comment.