X-Git-Url: https://git.distorted.org.uk/~mdw/catacomb-python/blobdiff_plain/62f9f6c4f3408ba29d555a7ed27658bbeae270c0..637b91402d2497db1318debd3cb3868a5abb8f01:/catacomb/__init__.py diff --git a/catacomb/__init__.py b/catacomb/__init__.py index 9178475..65695bb 100644 --- a/catacomb/__init__.py +++ b/catacomb/__init__.py @@ -623,7 +623,7 @@ class _tmp: def pad(me, sz): if sz > me.max: raise ValueError, 'key too large' elif sz < me.min: return me.min - else: sz += me.mod; return sz - sz%me.mod + else: sz += me.mod - 1; return sz - sz%me.mod _augment(KeySZRange, _tmp) class _tmp: