From 3a603b9fff48827c93358463b7ab212346e2b5e8 Mon Sep 17 00:00:00 2001 From: Martin Zeleny Date: Wed, 30 Oct 2019 17:28:32 +0100 Subject: [PATCH] Fix in _idify() This function used plain division '/' in an algorithm where floor division '//' should be used instead. --- source/base.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/base.py b/source/base.py index ca12420..992dae3 100644 --- a/source/base.py +++ b/source/base.py @@ -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