Skip to content

Commit 38d9f82

Browse files
committed
Fix faulty comparison in assertion (should be the other way around).
1 parent 06358a0 commit 38d9f82

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

jose/utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ def long_to_bytes(n, blocksize=0):
3030
if blocksize == 0:
3131
return ret
3232
else:
33-
assert len(ret) >= blocksize
33+
assert len(ret) <= blocksize
3434
padding = blocksize - len(ret)
3535
return b'\x00' * padding + ret
3636

0 commit comments

Comments
 (0)