X-Git-Url: https://git.distorted.org.uk/~mdw/catacomb-python/blobdiff_plain/7f38dc76ee0809207e67be7b2a2ddc600aba54d5..dad564fa66dd0ab52058f25a0eaf6a8e5b3c4316:/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: